Bug in BRRE? Can't find simple phone number match. #1
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BeRo1985/brre#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think I found a very big and obvious bug in your BRRE
Regex engine. I have attached a very small Delphi 7 project to
demonstrate it for you. Oops, looks like zip attachments are not allowed,
please download it here:
http://www.optimaloption.net/testregex.rar
When trying to capture very simple 10 digit phone numbers of this format
xxx-xxx-xxxx using this simple regex:
\d\d\d[-]\d\d\d[-]\d\d\d\d
...BRRE will not find the valid match from this data:
9245-817-2286
... the valid match should be 245-817-2286, no? I tried several online
regex testers and they all found the match fine.
However, if I change the first digit '9' in the test data to a letter,
like so:
x245-817-2286
... then BRRE will find the match 245-817-2286. Very strange. Can you
help please?
Thank You!
Shawn
Update to that download link:
http://www.getdemocode.com/testregex.rar