Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2014 20:45
Show Gist options
  • Save anonymous/10313144 to your computer and use it in GitHub Desktop.
Save anonymous/10313144 to your computer and use it in GitHub Desktop.
1.9.1 :001 > "foo \N bar NOW".gsub('\N', ' ')
=> "foo N bar NOW"
1.9.1 :002 > "foo \N bar NOW".gsub(/\\N/, ' ')
=> "foo N bar NOW"
1.9.1 :003 > "foo \N bar NOW".gsub(/\\\N/, ' ')
=> "foo N bar NOW"
1.9.1 :004 > "foo \N bar NOW".gsub('\\N', ' ')
=> "foo N bar NOW"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment