Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -1 +1,4 @@
|
|||
if val (.x, .y) = submatch(re/(abc+).+?(def)/, "somestring") { ... }
|
||||
switch "somestring" {
|
||||
case re/abc/: ...
|
||||
...
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
given "somestring" {
|
||||
case re/abc/: ...
|
||||
switch re/abc/ {
|
||||
case "somestring": ...
|
||||
...
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,2 @@
|
|||
given re/abc/ {
|
||||
case "somestring": ...
|
||||
...
|
||||
}
|
||||
replace("abcdef", re/abc/, "Y")
|
||||
# result: "Ydef"
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
replace("abcdef", re/abc/, "Y")
|
||||
# result: "Ydef"
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue