aboutsummaryrefslogtreecommitdiff
path: root/docs/text.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/text.md')
-rw-r--r--docs/text.md27
1 files changed, 1 insertions, 26 deletions
diff --git a/docs/text.md b/docs/text.md
index ca8c875d..5d399edd 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -270,7 +270,7 @@ Text.find(pattern:Text, start=1, length=!&Int64?)->Int
Text.find_all(pattern:Text)->[Text]
Text.split(pattern:Text)->[Text]
Text.replace(pattern:Text, replacement:Text)->[Text]
-Text.has(pattern:Text, where=Where.Anywhere)->Bool
+Text.has(pattern:Text)->Bool
```
See [Text Functions](#Text-Functions) for the full API documentation.
@@ -345,31 +345,6 @@ many repetitions you want by putting a number or range of numbers first using
[..0-1 question mark]
```
-## Some Examples
-
-URL query string parameters:
-
-```
-text := "example.com/page?a=b&c=d"
->> text:find(before=$Pat`?`, $Pat`[..]`):split($Pat`&`)
-= ["a=b", "c=d"]
-```
-
-Remove or get file extension:
-
-```
-filename := "foo.txt"
->> filename:without($Pat`.[:id:]`, where=End)
-= "foo"
-
->> filename:find(before=$Pat`.`, $Pat`[:id:][:end:]`)
-= MatchResult.Success(match="txt")
-
->> filename := "foo.tar.gz"
->> ".":join(filename:split($Pat`.`):from(2))
-= "tar.gz"
-```
-
# Text Functions
## `as_c_string`