in reply to Re^2: while =~ consecutive matching problem
in thread while =~ consecutive matching problem
Ok, take your second test case, the one that doesn't work as you expect, and let's walk through it.
What you may want is something like this:
m/\s$pattern(?=\s)/This won't gobble the second space char.
Dave
|
|---|