Documentation

pat

Syntax: %pat(n)

return the nth subpattern from the previous =~ expression.

NB: This function should no longer be used with %subregex. See that article for more details.

Example:

#IF ("Zugg is here" =~ "(%w) is here") {#SHOW %pat(1)}

Displays: Zugg

Add comment

Login or register to post comments