Data update

This commit is contained in:
Ingy döt Net 2024-03-06 22:25:12 -08:00
parent ed705008a8
commit 0df55f9f24
2196 changed files with 32999 additions and 3075 deletions

View file

@ -1 +1,4 @@
if val (.x, .y) = submatch(re/(abc+).+?(def)/, "somestring") { ... }
switch "somestring" {
case re/abc/: ...
...
}

View file

@ -1,4 +1,4 @@
given "somestring" {
case re/abc/: ...
switch re/abc/ {
case "somestring": ...
...
}

View file

@ -1,4 +1,2 @@
given re/abc/ {
case "somestring": ...
...
}
replace("abcdef", re/abc/, "Y")
# result: "Ydef"

View file

@ -1,2 +0,0 @@
replace("abcdef", re/abc/, "Y")
# result: "Ydef"

View file

@ -1,4 +1,4 @@
import "/pattern" for Pattern
import "./pattern" for Pattern
var s = "This is a story about R2D2 and C3P0 who are best friends."
var p = Pattern.new("/u/d/u/d")

View file

@ -1,4 +1,4 @@
/* regular_expressions.wren */
/* Regular_expressions_2.wren */
import "./regex" for Regex
var s = "This is a story about R2D2 and C3P0 who are best friends."