Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-06-25 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (564 votes). Check out past polls.