R
rt
Hello,
I'm having fits trying to make a regular expression work like I've used in
Perl.
Example:
input: "ABCDE"
pattern: "(.*)"
replacement: "This is $1"
A call to Regex.Replace(input, pattern, replacement) returns "This is
ABCDEThis is"
I don't understand where the trailing "This is" is coming from. What I
expected was "This is ABCDE".
Can anyone shed some light?
Thanks,
Rick
I'm having fits trying to make a regular expression work like I've used in
Perl.
Example:
input: "ABCDE"
pattern: "(.*)"
replacement: "This is $1"
A call to Regex.Replace(input, pattern, replacement) returns "This is
ABCDEThis is"
I don't understand where the trailing "This is" is coming from. What I
expected was "This is ABCDE".
Can anyone shed some light?
Thanks,
Rick