Skip to content

Instantly share code, notes, and snippets.

@2no
Created October 24, 2011 11:02
Show Gist options
  • Save 2no/1308776 to your computer and use it in GitHub Desktop.
Save 2no/1308776 to your computer and use it in GitHub Desktop.
Flash でトリム?
trace("    hogehoge     ".replace(/^[\s\t\r\n\0\0xB ]*|[\s\t\r\n\0\0xB ]*$/sg, ""));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment