tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(let (Pat "a[0-9]z" String "a7z")
|
||||
(use Preg
|
||||
(native "@" "regcomp" 'I '(Preg (64 B . 64)) Pat 1) # Compile regex
|
||||
(when (=0 (native "@" "regexec" 'I (cons NIL (64) Preg) String 0 0 0))
|
||||
(prinl "String \"" String "\" matches regex \"" Pat "\"") ) ) )
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
(let String "The number <7> is incremented"
|
||||
(use (@A @N @Z)
|
||||
(and
|
||||
(match '(@A "<" @N ">" @Z) (chop String))
|
||||
(format @N)
|
||||
(prinl @A "<" (inc @) ">" @Z) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue