

Task

   match a string against a regular expression
   substitute part of a string using a regular expression


scalar s="ars longa vita brevis"
 
* is there a vowel?
di regexm(s,"[aeiou]")
 
* replace the first vowel with "?"
di regexr(s,"[aeiou]","?")