Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RegEx

former_member194669
Active Contributor
0 Likes
584

What will be RegEx for matches 9 digit postal codes, Eg. such as 90999-0165

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
551

[does this help ? |http://software-wikipedia.blogspot.com/2009/04/handy-regular-expressions-zippostal.html]

or

@"^(\d-\d|\d|\d)$";

[Validate ZIP Codes|http://my.safaribooksonline.com/9780596802837/validation-zip]

Edited by: J@Y on Aug 11, 2009 10:19 PM

[does this help ? |http://software-wikipedia.blogspot.com/2009/04/handy-regular-expressions-zippostal.html]

or

@"^(\d-\d|\d|\d)$";

[Validate ZIP Codes|http://my.safaribooksonline.com/9780596802837/validation-zip]

Edited by: J@Y on Aug 11, 2009 10:19 PM

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
552

[does this help ? |http://software-wikipedia.blogspot.com/2009/04/handy-regular-expressions-zippostal.html]

or

@"^(\d-\d|\d|\d)$";

[Validate ZIP Codes|http://my.safaribooksonline.com/9780596802837/validation-zip]

Edited by: J@Y on Aug 11, 2009 10:19 PM

Read only

former_member194669
Active Contributor
0 Likes
551

That worked perfectly along with cl_abap_matcher


^[0-9]{5}-[0-9]{4}$