Opened 21 years ago
Closed 19 years ago
#946 closed Bugs (Fixed)
regexp enters in a infinite loop
Reported by: | nobody | Owned by: | John Maddock |
---|---|---|---|
Milestone: | Component: | regex | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
In the code below the regular expression fain to pass the line regex.Search(). So the line with if instruction will never be reached. const char* szExpr = "([A-Z][a-z\\, ]+)+"; const char* szData = "continent mostly south of the Antarctic Circle etc"; boost::RegEx regex(szExpr, true); bool bFound = regex.Search(szData); if(bFound) cout << regex[0].c_str() << endl; my email address is balcanuc@yahoo.com
Change History (3)
comment:2 by , 19 years ago
Logged In: YES user_id=14804 The current code will detect "infinite loops" and throw and exception to break out of them. John Maddock
comment:3 by , 19 years ago
Status: | assigned → closed |
---|
Note:
See TracTickets
for help on using tickets.