Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: A challenging problem in perl regular expression

by Albannach (Prior)
on Jan 08, 2009 at 05:03 UTC ( #734806=note: print w/replies, xml ) Need Help??


in reply to A challenging problem in perl regular expression

How about:
$_='JAZZxxJAZZJAZZxxJAZJAZZxxJAZZ'; print $_,$/; s/(.*?)(JAZZ)/('a'x length $1) . $2/ge; print
which gives:
JAZZxxJAZZJAZZxxJAZJAZZxxJAZZ JAZZaaJAZZJAZZaaaaaJAZZaaJAZZ

--
I'd like to be able to assign to an luser

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734806]
help
Chatterbox?
[marto]: hmm, verify httpscert, hosted on IIS, created on $client Windows PKI infrastructure from perl on an old Solaris box
[marto]: I really hate our clients network/infrastruc ture :P

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-10-20 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (261 votes). Check out past polls.

    Notices?