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
In reply to Re: Match whitespace or start-of-string with lookbehind
by Enlil
in thread Match whitespace or start-of-string with lookbehind
by BigLug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |