Code:
disp regexm("010-11223344","\d{3}-\d{8}")
Code:
disp regexm("010-11223344","[0-9]{3}-[0-9]{8}")
Code:
disp("010-11223344","[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]")
I really felt it silly the way writing regular expression in Stata. It will be a catastrophe when we encounter a more complex one.
0 Response to On the regular expression of Stata
Post a Comment