diff --git a/README.md b/README.md index 59dc905..0deef34 100644 --- a/README.md +++ b/README.md @@ -368,11 +368,11 @@ import re ### Match Object ```python - = .group() # Returns whole match. Also group(0). - = .group(1) # Returns part in first bracket. + = .group() # Returns the whole match. Also group(0). + = .group(1) # Returns part in the first bracket. = .groups() # Returns all bracketed parts. - = .start() # Returns start index of a match. - = .end() # Returns exclusive end index of a match. + = .start() # Returns start index of the match. + = .end() # Returns exclusive end index of the match. ``` ### Special Sequences diff --git a/index.html b/index.html index a8019cc..2ed75a4 100644 --- a/index.html +++ b/index.html @@ -473,11 +473,11 @@ to_exclusive = <range>.stop
  • Use r'\1' or '\\1' for backreference.
  • Add '?' after an operator to make it non-greedy.
  • -

    Match Object

    <str>   = <Match>.group()                      # Returns whole match. Also group(0).
    -<str>   = <Match>.group(1)                     # Returns part in first bracket.
    +

    Match Object

    <str>   = <Match>.group()                      # Returns the whole match. Also group(0).
    +<str>   = <Match>.group(1)                     # Returns part in the first bracket.
     <tuple> = <Match>.groups()                     # Returns all bracketed parts.
    -<int>   = <Match>.start()                      # Returns start index of a match.
    -<int>   = <Match>.end()                        # Returns exclusive end index of a match.
    +<int>   = <Match>.start()                      # Returns start index of the match.
    +<int>   = <Match>.end()                        # Returns exclusive end index of the match.
     

    Special Sequences