Timeline for answer to POSIX: Regular Expression: "\(a\(b\)*\)*\2" matches "abab" by Stéphane Chazelas
Current License: CC BY-SA 4.0
Post Revisions
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| 20 mins ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 55 characters in body
|
| 31 mins ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 172 characters in body
|
| 47 mins ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 82 characters in body
|
| 2 hours ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 225 characters in body
|
| 2 hours ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 162 characters in body
|
| 3 hours ago | comment | added | Stéphane Chazelas |
@becke-ch, there's no match. It's not \(b*\) where b* would match an empty string, its \(b\)*, where b doesn't match.
|
|
| 3 hours ago | comment | added | becke-ch |
Question regarding: aba, ab then a but then for that a, there is no match for the contained subexpression within the string matched by the containing subexpression, so \2 won't match. Is there no match for the contained subexpression or is it an empty match? <asterisk> it shall match what zero or more consecutive occurrences of the BRE would match
|
|
| 3 hours ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 3064 characters in body
|
| 3 hours ago | vote | accept | becke-ch | ||
| 3 hours ago | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
deleted 4 characters in body
|
| 3 hours ago | history | answered | Stéphane Chazelas | CC BY-SA 4.0 |