Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Created January 8, 2018 14:30
Show Gist options
  • Save zimmerle/59dbc60604454e99fbf1d7279ae8e12d to your computer and use it in GitHub Desktop.
Save zimmerle/59dbc60604454e99fbf1d7279ae8e12d to your computer and use it in GitHub Desktop.
([^%\']|(\\\')|([^\\\\]+\\\%\{)|(%[^{]))+
@zimmerle
Copy link
Author

zimmerle commented Jan 8, 2018

thing ' teste -> not match
thing ' teste -> match

@zimmerle
Copy link
Author

zimmerle commented Jan 8, 2018

(([^%'])|([^\\][\][%][{])|(^\+[\][%][{])|[^\\][\][']|^\+[\]['])+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment