CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
Converting sed regex to Perl regex

 



siri_rsvrl
New User

Aug 21, 2008, 9:53 AM

Post #1 of 1 (2050 views)
Converting sed regex to Perl regex Can't Post

I am new to regex and I don't no perl also,my prj is requirement is to send the perl/java regex to the external party.I came up with a regex and tested with sed and it worked fine.

The following regex when applied to the input string,it does the replacements:

regex is
s/\(^.*@\)\(.*\)$/\1test.usa.com;value=abcd/i
Input string is
test:17031231234@replacetest.abc.com;value=replaced

output is
test:17031231234@test.usa.com;value=abcd

Now,I want the equivalent perl regex...

I would really appreciate the help...Keeping my fingers crossed....

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives