Problems while using RegExps

mail's Avatar

mail

12 Dec, 2011 11:48 PM

Hi

I'm trying to notify through growl the messages that follow this RegExp:

github.com\/[\/]*\/[\/]*\/pull

But it seems to not work. Is there any documentation to see how to use Propane's RegExp engine?

  1. Support Staff 1 Posted by trevor on 13 Dec, 2011 12:27 AM

    trevor's Avatar

    Hey.

    The regex engine in Propane1 is supplied by RegexKit, which in turn bundles the PCRE library.

    http://regexkit.sourceforge.net/
    http://www.pcre.org/

    As for your particular regex, I'm not sure I understand how it's supposed to work...

    However, if you're looking for a regex that will match a github pull-request URL, I think this does the trick:

    \bhttp(s)?://github.com/.*/pull/\d+\b
    

    Regards, Trev

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac