in reply to Match whitespace or start-of-string with lookbehind
In short I am just changing the variable length lookbehind assertion and making it a regular captured pattern and putting it back after the match.$text =~ s/(^|\s)"(?=\w)/$1“/gs;
HTH
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match whitespace or start-of-string with lookbehind
by BigLug (Chaplain) on Aug 24, 2004 at 02:58 UTC |