Last active
December 15, 2015 09:19
-
-
Save psyked/5237761 to your computer and use it in GitHub Desktop.
Converting old ActionScript 2 trace(); statements to HTML5-eque console.log() statements with a regular expression
This file contains 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
Find: trace\(([A-Z a-z 0-9"'=_\-.+,\\/\(\)\[\]:#!<>%]*)\); | |
Replace: ExternalInterface.call("console.log", $1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment