Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Regular Expression Builder

by belg4mit (Prior)
on Aug 31, 2002 at 01:39 UTC ( #194292=note: print w/replies, xml ) Need Help??


in reply to Re: Regular Expression Builder
in thread Regular Expression Builder

Clever, but add the step (actually, merge it with the A9 -> metachar translation):
s%((?:\\w)+)%'\w{'. length($1)/2 .'}'%eg; ...

--
perl -pew "s/\b;([mnst])/'$1/g"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2016-09-28 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (518 votes). Check out past polls.