regular expressions "[X0-9][0-9]{4}" and "[0-9X][0-9]{4}" not equivalent? (Oliver Hoehle)
21 Feb 2003 01:15:12 -0500

          From comp.compilers

Related articles
regular expressions "[X0-9][0-9]{4}" and "[0-9X][0-9]{4}" not equiv (2003-02-21)
| List of all articles for this month |

From: (Oliver Hoehle)
Newsgroups: comp.compilers
Date: 21 Feb 2003 01:15:12 -0500
Keywords: lex, question
Posted-Date: 21 Feb 2003 01:15:12 EST


IMHO, the regular expressions should be equivalent, but Jakarta-RegExp
1.2 does not think so.

For example: RegExp will tell me that the string "X1234" matched only
the second expression....;-(

Whats going wrong?

Regards Oliver
[Looks OK to me. Any chance you mistyped something? -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.