Created
June 16, 2010 15:12
-
-
Save albus522/440826 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Regex to find <% ... %> which likely should be <%= ... %> | |
# Excludes: | |
# <% @.* | |
# <% end.* | |
# <% else.* | |
# <% elsif.* | |
# <% if[ (].* | |
# <% unless.* | |
/<% ([^e@ui]|e[^nl]|en[^d]|el[^s]|els[^ei]|elsi[^f]|u[^n]|un[^l]|unl[^e]|unle[^s]|unles[^s]|i[^f]|if[^ (])/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment