Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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;

Replies are listed 'Best First'.
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 romping around the Monastery: (5)
As of 2016-06-27 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (334 votes). Check out past polls.