Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python regexp syntax #12

Open
idan opened this issue Sep 24, 2009 · 4 comments
Open

Add Python regexp syntax #12

idan opened this issue Sep 24, 2009 · 4 comments

Comments

@idan
Copy link

idan commented Sep 24, 2009

Reggy looks awesome. I would love to see python regexp syntax supported!

@samsouder
Copy link
Owner

I didn't realize Python had it's own syntax, as I don't really use it. If someone can find an objective-c or c library for parsing them, it would be possible to add support for it.

Currently Reggy uses OgreKit for all syntaxes.

@idan
Copy link
Author

idan commented Sep 24, 2009

Hmm, not sure that python has something which is unique to it, TBH I don't know much about variants of regexp flavors.

Best resource I was able to google on the subject: http://www.regular-expressions.info/python.html -- I don't see anything about python-specific extensions, only a few things that it doesn't support.

So should pythoneers just be using one of the POSIX variants?

Thanks for making this awesome tool.

@idan
Copy link
Author

idan commented Sep 24, 2009

Ah, looks like there are some python-specific things, like python-style named capture groups. I don't know if there's an objc library for this, totally understand why you might not be interested in spending time on this. Thanks all the same!

@enno-au
Copy link

enno-au commented Feb 15, 2016

Looks like OgreKit has supported the syntax for at least the last ten years if this post from 2005 http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00147.html is anything to go by. This would at least mean that RE's with named captures would 'work'.

Of course ideally we'd still need Reggy to do something with the named captures after that, like say a new window/pane with name:value pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants