Regex match pattern inside a wrapping pattern
Posted
by shivesh
on Stack Overflow
See other posts from Stack Overflow
or by shivesh
Published on 2010-06-18T11:31:34Z
Indexed on
2010/06/18
11:33 UTC
Read the original article
Hit count: 367
I want match all phone numbers that are wrapped between << and >> tags.
This regex for phone numbers:
0[2349]{1}\-[1-9]{1}[0-9]{6}
I tired to add lookahead (and lookbehind) like (?=(?:>>))
but this didn't work for me.
© Stack Overflow or respective owner