RE: About the regular expression problem

2007-05-04 Thread Gerald Richter - ECOS GmbH
HI, > I have a problem when I use regular expression. > The sample code: > [- $_ = "One Two Three" -] > [$ if(/(\S+) (\S+) (\S+)/) $] > The words are: [+$1+], [+$2+], [+$3+] > [$ endif $] > > The result should be "The words are: One, Two, Three," But I > got the result "The words are: One, Two,.

About the regular expression problem

2007-05-04 Thread Yuren Li
Hi, I have a problem when I use regular expression. The sample code: [- $_ = "One Two Three" -] [$ if(/(\S+) (\S+) (\S+)/) $] The words are: [+$1+], [+$2+], [+$3+] [$ endif $] The result should be "The words are: One, Two, Three," But I got the result "The words are: One, Two,." After trying, I f