How to write Regular Expression for recursive matching?

2007-11-26 Thread lisong
Hi All, I have problem to split a string like this: 'abc.defg.hij.klmnop' and I want to get all substrings with only one '.' in mid. so the output I expect is : 'abc.defg', 'defg.hij', 'hij.klmnop' a simple regular expression '\w+.\w' will only return: 'abc.defg', 'hij.klmnop' is there a way

Re: How to write Regular Expression for recursive matching?

2007-11-26 Thread lisong
On Nov 26, 12:34 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 26, 2007 at 06:04:54PM +0100, Diez B. Roggisch wrote regarding > Re: How to write Regular Expression for recursive matching?: > > > > > > > lisong wrote: > > > >