L
Lloyd Sheen
I just bought Mastering Regular Expression since I have had no luck with any
docs available on the web. (MSDN is totally useless in this area).
So I am using the Expresso app as a workbench to learn with. Now the
problem occurs at the very beginning of the learning process.
First it appears that there is no "standard" for regex (or MS has their own
standard as usual).
First expression causes a problem I cannot explain. It is a regex to find
double double words. The expression is ([a-zA-Z]*) +\1
and the searched text is "This is an example of a double word word for an
example:
The result has the two values you would expect (I am not checking the
beginning of the word) plus each space as a match. My evaluation of the
expression is as follows:
1. ([a-zA-Z]*) should match any number of alpha characters
2. one space
3. \1 should match what was found in first steps
I have no idea how those spaces show as matches. If space is from a-z or
A-Z I would be very surprised.
HELP
Lloyd Sheen
docs available on the web. (MSDN is totally useless in this area).
So I am using the Expresso app as a workbench to learn with. Now the
problem occurs at the very beginning of the learning process.
First it appears that there is no "standard" for regex (or MS has their own
standard as usual).
First expression causes a problem I cannot explain. It is a regex to find
double double words. The expression is ([a-zA-Z]*) +\1
and the searched text is "This is an example of a double word word for an
example:
The result has the two values you would expect (I am not checking the
beginning of the word) plus each space as a match. My evaluation of the
expression is as follows:
1. ([a-zA-Z]*) should match any number of alpha characters
2. one space
3. \1 should match what was found in first steps
I have no idea how those spaces show as matches. If space is from a-z or
A-Z I would be very surprised.
HELP
Lloyd Sheen