This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm looking for a regular expression to match at most one occurrence of a substring 'bb' over a language {a,b}
I looked at https://stackoverflow.com/questions/48916643/regular-expression-contain-at-most-1-occurrence-of-substring but this is in terms of automata where the ' ' has a different meaning as compared to regular expressions.
To clarify, my understanding is that r1=a* b* in an automata RE would mean that a string would either be empty, or have only a's or only b's, but for RE's like in Python * would become a possessive quantifier instead. If I'm wrong please do correct me
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnpython...