Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Last active May 24, 2020 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souhaiebtar/0487748d558b5e9304a9850b8fa23e62 to your computer and use it in GitHub Desktop.
Save souhaiebtar/0487748d558b5e9304a9850b8fa23e62 to your computer and use it in GitHub Desktop.
[regex_list.md] some regex to use with different software and language #regex #vscode
  • list all string that have estimate_ that is not followed by request
estimate_((?!request))
  • list all string that start log_message, even it's precedded with space character or tab character
^[\t ]*log_message
  • regex for string that contain $lang + [ + ' or " + invoice_purchase + ' or "
\$lang\[['"]invoice_purchase['"]
  • search for all occurences of the word count that are not precedded with any alphabetic character or - or _ and that is followed or not by (space) character and after that (
(?<![a-zA-Z-_])count[ ]*\(

Match empty line, can be used in phpstorm to search for all empty linelink

^(?:[\t ]*(?:\r?\n|\r))+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment