Skip to content

Instantly share code, notes, and snippets.

@Locke23rus
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save Locke23rus/482528c5d2e570bcb2fb to your computer and use it in GitHub Desktop.

Select an option

Save Locke23rus/482528c5d2e570bcb2fb to your computer and use it in GitHub Desktop.
Regex with Unicode categories
$ crystal regex.cr
Syntax error in ./regex.cr:1: invalid regex: support for \P, \p, and \X has not been compiled at 4
puts " \# ".gsub /\\(\p{P})/, '\1'
puts " \# ".gsub /\\(\p{P})/, '\1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment