update regular expressions example

the example uses ure instead of re
This commit is contained in:
Andy 2022-01-12 22:35:18 -05:00 committed by GitHub
parent 1022866d95
commit 5fe2331782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -95,11 +95,11 @@ Supported operators and special sequences are:
Example::
import ure
import re
# As ure doesn't support escapes itself, use of r"" strings is not
# As re doesn't support escapes itself, use of r"" strings is not
# recommended.
regex = ure.compile("[\r\n]")
regex = re.compile("[\r\n]")
regex.split("line1\rline2\nline3\r\n")