Difference between revisions of "M4 Regexp Examples"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '{| border="1" cellpadding="5" cellspacing="0" | '''Regexp''' || '''Explanation''' |- | .* || everything |- | ^[0-9]+$ || only digits |- | ^\+?[0-9]+$ || + sign and only digit…')
 
Line 9: Line 9:
|-  
|-  
| ^370[0-9]+$ || only digits starting with 370
| ^370[0-9]+$ || only digits starting with 370
|-
| ^370.*$ || anything starting with 370
|-
|-
| ^(37[0-1])|(44)[0-9]*$|| only digits starting with 370 or 371 or 44
| ^(37[0-1])|(44)[0-9]*$|| only digits starting with 370 or 371 or 44
|}
|}

Revision as of 14:25, 22 January 2014

Regexp Explanation
.* everything
^[0-9]+$ only digits
^\+?[0-9]+$ + sign and only digits
^370[0-9]+$ only digits starting with 370
^370.*$ anything starting with 370
^(37[0-1])|(44)[0-9]*$ only digits starting with 370 or 371 or 44