diff --git a/README.md b/README.md index 10ce7f5..195a278 100644 --- a/README.md +++ b/README.md @@ -320,9 +320,14 @@ String = .index() # Same but raises ValueError if missing. ``` +```python + = .isdecimal() # True if str contains only [0-9], [٠-٩], … + = .isdigit() # Also true if str contains '¹²³…'. + = .isnumeric() # Also true if str contains '¼½¾…'. +``` + ```python = .replace(old, new [, count]) # Replaces 'old' with 'new' at most 'count' times. - = .isnumeric() # True if str contains only numeric characters. = textwrap.wrap(, width) # Nicely breaks string into lines. ``` diff --git a/index.html b/index.html index dc17109..4544e5d 100644 --- a/index.html +++ b/index.html @@ -432,8 +432,11 @@ to_exclusive = <range>.stop <int> = <str>.find(<sub_str>) # Returns start index of first match or -1. <int> = <str>.index(<sub_str>) # Same but raises ValueError if missing. +
<bool> = <str>.isdecimal()                   # True if str contains only [0-9], [٠-٩], …
+<bool> = <str>.isdigit()                     # Also true if str contains '¹²³…'.
+<bool> = <str>.isnumeric()                   # Also true if str contains '¼½¾…'.
+
<str>  = <str>.replace(old, new [, count])   # Replaces 'old' with 'new' at most 'count' times.
-<bool> = <str>.isnumeric()                   # True if str contains only numeric characters.
 <list> = textwrap.wrap(<str>, width)         # Nicely breaks string into lines.