Re: Searching for Regular Expressions in a string WITH overlap

2008-11-20 Thread Matimus
On Nov 20, 4:31 pm, Ben <[EMAIL PROTECTED]> wrote: > I apologize in advance for the newbie question.  I'm trying to figure > out a way to find all of the occurrences of a regular expression in a > string including the overlapping ones. > > For example, given the string 123456789 > > I'd like to use

Searching for Regular Expressions in a string WITH overlap

2008-11-20 Thread Ben
I apologize in advance for the newbie question. I'm trying to figure out a way to find all of the occurrences of a regular expression in a string including the overlapping ones. For example, given the string 123456789 I'd like to use the RE ((2)|(4))[0-9]{3} to get the following matches: 2345 4