diff --git a/README.md b/README.md index a06c855..55dac19 100644 --- a/README.md +++ b/README.md @@ -350,8 +350,8 @@ import re = re.finditer(, text) # Returns all occurrences as match objects. ``` -* **Parameter `'flags=re.IGNORECASE'` can be used with all functions.** -* **Parameter `'flags=re.DOTALL'` makes dot also accept newline.** +* **Argument `'flags=re.IGNORECASE'` can be used with all functions.** +* **Argument `'flags=re.DOTALL'` makes dot also accept newline.** * **Use `r'\1'` or `'\\1'` for backreference.** * **Use `'?'` to make an operator non-greedy.** @@ -365,7 +365,8 @@ import re ``` ### Special Sequences -**Expressions below hold true for strings that contain only ASCII characters. Use capital letters for negation.** +* **By default digits, whitespaces and alphanumerics from all alphabets are matched, unless `'flags=re.ASCII'` argument is used.** +* **Use capital letters for negation.** ```python '\d' == '[0-9]' # Digit '\s' == '[ \t\n\r\f\v]' # Whitespace @@ -1960,7 +1961,7 @@ except : ``` ### Rotation -**Parameter that sets a condition when a new log file is created.** +**Argument that sets a condition when a new log file is created.** ```python rotation=||| ``` diff --git a/index.html b/index.html index dba35ad..bb6de35 100644 --- a/index.html +++ b/index.html @@ -441,8 +441,8 @@ to_exclusive = <range>.stop <iter> = re.finditer(<regex>, text) # Returns all occurrences as match objects.
    -
  • Parameter 'flags=re.IGNORECASE' can be used with all functions.
  • -
  • Parameter 'flags=re.DOTALL' makes dot also accept newline.
  • +
  • Argument 'flags=re.IGNORECASE' can be used with all functions.
  • +
  • Argument 'flags=re.DOTALL' makes dot also accept newline.
  • Use r'\1' or '\\1' for backreference.
  • Use '?' to make an operator non-greedy.
@@ -454,7 +454,10 @@ to_exclusive = <range>.stop <int> = <Match>.end() # Exclusive end index of a match.

Special Sequences

-

Expressions below hold true for strings that contain only ASCII characters. Use capital letters for negation.

+
    +
  • By default digits, whitespaces and alphanumerics from all alphabets are matched, unless 'flags=re.ASCII' argument is used.
  • +
  • Use capital letters for negation.
  • +
'\d' == '[0-9]'             # Digit
 '\s' == '[ \t\n\r\f\v]'     # Whitespace
 '\w' == '[a-zA-Z0-9_]'      # Alphanumeric
@@ -1654,7 +1657,7 @@ logger.<level>('A logging message.')
     logger.exception('An error happened.')
 

Rotation

-

Parameter that sets a condition when a new log file is created.

+

Argument that sets a condition when a new log file is created.

rotation=<int>|<datetime.timedelta>|<datetime.time>|<str>