Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Created January 8, 2018 14:30
Show Gist options
  • Select an option

  • Save zimmerle/59dbc60604454e99fbf1d7279ae8e12d to your computer and use it in GitHub Desktop.

Select an option

Save zimmerle/59dbc60604454e99fbf1d7279ae8e12d to your computer and use it in GitHub Desktop.
([^%\']|(\\\')|([^\\\\]+\\\%\{)|(%[^{]))+
@zimmerle

zimmerle commented Jan 8, 2018

Copy link
Copy Markdown
Author

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

@zimmerle

zimmerle commented Jan 8, 2018

Copy link
Copy Markdown
Author

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

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