I would never have thought that @- and @+ where dependant upon /g? Is that a bug?You need the /g because you are doing iterative matching in a while loop.
In reply to Re^4: Refactoring challenge.
by Roy Johnson
in thread Refactoring challenge.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |