Merge pull request #5849 from alustig3/patch-1
Regular expressions docs example update
This commit is contained in:
commit
936c9b2055
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user