mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 10:20:29 +00:00
Fix redbean re.NEWLINE documentation
This commit is contained in:
parent
d7ff346b52
commit
afa3d2b8ea
1 changed files with 10 additions and 6 deletions
|
@ -1186,14 +1186,18 @@ RE MODULE
|
||||||
This flag may only be used with re.compile and re.search.
|
This flag may only be used with re.compile and re.search.
|
||||||
|
|
||||||
re.ICASE
|
re.ICASE
|
||||||
Use this flag to make your pattern case ASCII case-insensitive.
|
|
||||||
This flag may only be used with re.compile and re.search.
|
|
||||||
|
|
||||||
re.NEWLINE
|
|
||||||
Use this flag to make your pattern case ASCII case-insensitive.
|
Use this flag to make your pattern case ASCII case-insensitive.
|
||||||
This means [a-z] will mean the same thing as [A-Za-z]. This flag
|
This means [a-z] will mean the same thing as [A-Za-z]. This flag
|
||||||
may only be used with re.compile and re.search.
|
may only be used with re.compile and re.search.
|
||||||
|
|
||||||
|
re.NEWLINE
|
||||||
|
Use this flag to change the handling of NEWLINE (\x0a) characters.
|
||||||
|
When this flag is set, (1) a NEWLINE shall not be matched by a "."
|
||||||
|
or any form of a non-matching list, (2) a "^" shall match the
|
||||||
|
zero-length string immediately after a NEWLINE (regardless of
|
||||||
|
re.NOTBOL), and (3) a "$" shall match the zero-length string
|
||||||
|
immediately before a NEWLINE (regardless of re.NOTEOL).
|
||||||
|
|
||||||
re.NOSUB
|
re.NOSUB
|
||||||
Causes re.search to only report success and failure. This is
|
Causes re.search to only report success and failure. This is
|
||||||
reported via the API by returning empty string for success. This
|
reported via the API by returning empty string for success. This
|
||||||
|
@ -1202,12 +1206,12 @@ RE MODULE
|
||||||
re.NOTBOL
|
re.NOTBOL
|
||||||
The first character of the string pointed to by string is not the
|
The first character of the string pointed to by string is not the
|
||||||
beginning of the line. This flag may only be used with re.search
|
beginning of the line. This flag may only be used with re.search
|
||||||
and regex_t*:search
|
and regex_t*:search.
|
||||||
|
|
||||||
re.NOTEOL
|
re.NOTEOL
|
||||||
The last character of the string pointed to by string is not the
|
The last character of the string pointed to by string is not the
|
||||||
end of the line. This flag may only be used with re.search and
|
end of the line. This flag may only be used with re.search and
|
||||||
regex_t*:search
|
regex_t*:search.
|
||||||
|
|
||||||
CONSTANTS
|
CONSTANTS
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue