Hi All,

With the help of the guys on the chat line, I learned
something new.  How do deal with metacharacter(s) in
a regex.

To match a metacharacter: "<" and "?" in this example:
    $ p6 'if "</span xxx" ~~ m| ("</"span) |   {say "y"}else{say "n"};'
    y

    $ p6 'if "</spmm xxx" ~~ m| ("</"span) |   {say "y"}else{say "n"};'
    n

-T

Reply via email to