In the book, Mastering Regular Expressions, the author discusses this phenomenon. By the way, it is exactly for this reason (the advancing pos()) that split // ends up separating the string into one-character components.
--
[ e d @ h a l l e y . c c ]
In reply to Re: zero-length match increments pos()
by halley
in thread zero-length match increments pos()
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |