Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created April 18, 2018 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/f152e78f5f32e52b56b68e2bf042e58b to your computer and use it in GitHub Desktop.
Save Fhernd/f152e78f5f32e52b56b68e2bf042e58b to your computer and use it in GitHub Desktop.
Unicode en expresiones regulares. OrtizOL.
import re
patron = re.compile('\d+')
print(patron.match('987'))
print(patron.match('\u0661\u0662\u0663'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment