Created
April 16, 2012 04:43
-
-
Save thenbrent/2396366 to your computer and use it in GitHub Desktop.
Regex to match WordPress i18Nn function with no text domain specified
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
| (_e\(\s*'[^']*')(\s*)(?=\))(\)) | |
| (__\(\s*'[^']*')(\s*)(?=\))(\)) | |
| Or do them in both, also account for strings using "" instead of just '': | |
| (_[e|_]\(\s*['|"][^,'"]*['|"])(\s?)(?=\))(\){1}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment