You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
393 B
Python
6 lines
393 B
Python
5 years ago
|
|
||
|
# A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams. An example of a delimiter is the comma character, which acts as a field delimiter in a sequence of comma-separated values.
|
||
|
|
||
|
import re
|
||
|
text = 'The quick brown\nfox jumps*over the lazy dog.'
|
||
|
print(re.split('; |, |\*|\n',text))
|