Merge pull request #5849 from alustig3/patch-1

Regular expressions docs example update
This commit is contained in:
Dan Halbert 2022-01-13 08:46:11 -05:00 committed by GitHub
commit 936c9b2055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")