
siri_rsvrl
New User
Aug 21, 2008, 9:53 AM
Post #1 of 1
(1400 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....
|