K
Kristof Bastiaensen
Hi,
I am wondering if this is the correct behaviour in gsub:
"bab".gsub(/(?!a)ab/, "cd")
=> "bab"
shouldn't that be "bcd"?
Also the following:
"\nab".gsub(/(?!\w)ab/, "cd")
=> "\nab"
This seems to work
"bab".gsub(/(?!c)ab/, "cd")
=> "bcd"
Kristof
I am wondering if this is the correct behaviour in gsub:
"bab".gsub(/(?!a)ab/, "cd")
=> "bab"
shouldn't that be "bcd"?
Also the following:
"\nab".gsub(/(?!\w)ab/, "cd")
=> "\nab"
This seems to work
"bab".gsub(/(?!c)ab/, "cd")
=> "bcd"
Kristof