Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: simple regexp question

by sen (Hermit)
on Nov 21, 2007 at 09:50 UTC ( #652090=note: print w/ replies, xml ) Need Help??


in reply to simple regexp question

i think, it works, if i understand your reqirement,

$strTest =~ s/(.*?)(&)(.*?)(;)/$1$2$3 $4/g;


Comment on Re: simple regexp question
Download Code
Re^2: simple regexp question
by KarthikK (Sexton) on Nov 21, 2007 at 10:50 UTC
    This pattern seems to work. but i will try and do some more testing with my req. thanks a lot

    regrads
    Karthik

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-07-06 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls