Browse Source

Regex

pull/3/head
Jure Šorn 6 years ago
parent
commit
5fad6e0ebe
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -168,9 +168,9 @@ re.findall(<regex>, text)
re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches. re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
``` ```
**_Search_ and _match_ functions return a 'Match' object. Use '.group()' method on it to get the match.**
**'Search' and 'match' functions return a 'Match' object. Use '.group()' method on it to get the match.**
**Parameter 'flags=re.IGNORECASE' can be used with all functions.** **Parameter 'flags=re.IGNORECASE' can be used with all functions.**
**Parameter 'flags=re.DOTALL' makes dot also accept newline.
**Parameter 'flags=re.DOTALL' makes dot also accept newline.**
**Use r'\1' for backreference.** **Use r'\1' for backreference.**
#### Special Sequences: #### Special Sequences:

Loading…
Cancel
Save