Skip to content

Instantly share code, notes, and snippets.

@psyked
Last active December 15, 2015 09:19
Show Gist options
  • Save psyked/5237761 to your computer and use it in GitHub Desktop.
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
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