klorenz / atom-regex-railroad-diagrams

display regex as railroad diagram, if cursor moves to it
MIT License
250 stars 31 forks source link

Python regular expressions not always correct #14

Closed robojeb closed 10 years ago

robojeb commented 10 years ago

Occasionally in python the system only grabs part of the regular expression. For example in this regex:

ur"([a-z][a-z0-9]*)([A-Z][a-z0-9]*)*_$"

it misses the _$ portion in the diagram and in this

ur"([a-zA-z]+[0-9]+)/ours/([a-zA-Z]+-[a-zA-Z]+|[a-zA-Z]+)/(hw[0-9]+)"

it grabs each group individually and ignores the /ours/ portion

klorenz commented 10 years ago

this issue is fixed, so I close it.