RosettaCodeData/Task/Regular-expressions/Stata/regular-expressions.stata
2017-09-25 22:28:19 +02: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]","?")