On Sat, Feb 27, 2016 at 8:34 PM, James E Keenan <jk...@verizon.net> wrote:

> I'm surprised to get exactly the same output I got in both languages when
> my delimiter was the multi-character string 'tri'.  The '[' and ']'
> characters do not seem to indicate "character class" at all.  It's as if
> '/[...]/' magically turns into 'q|...|'.  What am I not grasping here?


[...] is what used to be (?:...), and <[...]> is what used to be [...].
Regexes have changed a *lot*, and you will really need to learn how they
work now; just hoping that things work just like perl 5 will not work.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to