Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Lookahead/Lookbehind Regular Expression...

by hdb (Monsignor)
on Dec 19, 2013 at 17:15 UTC ( [id://1067839]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $str = "a history of u.s. coast guard aviation.  M.C. Esher";
    $str =~ s/\W\K((\w\.)+)/ $1 =~ s{\.}{}gr /ge;
    print "$str\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1067839]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-19 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found