RosettaCodeData/Task/Regular-expressions/Stata/regular-expressions.stata
2023-07-01 13:44:08 -04:00

7 lines
140 B
Text

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