Posted 20 years ago
by Russell Mason
Hi
I'm using a regular expression application (RegexBuddy) to make sure I get my regular expressions correct before adding them to my language definition.
If I use ABC|XYZ or (ABC)|(XYZ) in RegexBuddy these are equivalent, i.e they match ABC or XYZ, however SytaxEditor only matches the first version and not the second.
I thought these 2 expressions were the same just 1 uses groups and the other does not. Can you explain how your regular expression engine sees this?
Thanks
Russell Mason
I'm using a regular expression application (RegexBuddy) to make sure I get my regular expressions correct before adding them to my language definition.
If I use ABC|XYZ or (ABC)|(XYZ) in RegexBuddy these are equivalent, i.e they match ABC or XYZ, however SytaxEditor only matches the first version and not the second.
I thought these 2 expressions were the same just 1 uses groups and the other does not. Can you explain how your regular expression engine sees this?
Thanks
Russell Mason