MegaIng / interegular

Allows to check regexes for overlaps. Based on greenery by @qntm.
MIT License
42 stars 6 forks source link

Interegular having difficulties with escaped / #6

Closed lapp0 closed 10 months ago

lapp0 commented 10 months ago
import interegular, regex
>>> pat0
'\\/(?!\\/)(\\\\\\/|\\\\\\\\|[^\\/])*?\\/[imslux]*'
>>> regex.match(pat0, "/", partial=True)
<regex.Match object; span=(0, 1), match='/', partial=True>
>>> interegular.parse_pattern(pat0).to_fsm().accepts("/")
False