in reply to zero-length match increments pos()
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 ]
|
|---|