Skip to content

Instantly share code, notes, and snippets.

@emgiezet
Created March 19, 2012 15:01
Show Gist options
  • Save emgiezet/2115402 to your computer and use it in GitHub Desktop.
Save emgiezet/2115402 to your computer and use it in GitHub Desktop.
Finding count($variable) in the if statements in php code
ack-grep "(if\(([\w\s])?count\()(.*)(\))(([\w\s])?(>)[\w\s])[\d]([\w\s])?(\))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment