Name

about:regular-expressions

Description

Standard regular expression

user 1 > #/aap/
it: #/aap/
user 2 > :d
#s( :members #s( :match-timeout -00:00:00.0010000
                 :options None
                 :right-to-left false )
    :type "Kiezel.RegexPlus"
    :value #/aap/ )

user 2 > (.regex-match "slaap" #/aap/)
it: ("aap")
user 3 > #/(a*)(p)/i
it: #/(a*)(p)/i
user 4 > :d
#s( :members #s( :match-timeout -00:00:00.0010000
                 :options IgnoreCase
                 :right-to-left false )
    :type "Kiezel.RegexPlus"
    :value #/(a*)(p)/i )

user 4 > (.regex-match "SLAAp" #/(a*)(p)/i)
it: ("AAp" "AA" "p")

Regular expression from a wildcard pattern

user 1 > #/*.k/w
it: #/^(.*?)\.k$/
user 2 > (filter #/*.k/w '("a.k" "b.cs" "c.K"))
it: ("a.k")
user 3 > (filter #/*.k/wi '("a.k" "b.cs" "c.K"))
it: ("a.k" "c.K")

Regular expression as a function

user 1 > (filter #/aap/ '("slaap" "jaap" "teun" "mies" "jaap"))
it: ("slaap" "jaap" "jaap")