Upcoming SlideShare
×

# Regular Expression

106 views

Published on

Different Regular Expression for Integer Number

Published in: Education, Technology, Design
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
106
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
0
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Regular Expression

1. 1. 12 Different Regular Expression for Integer Number Tip #1 http://www.youtube.com/zarigatongy
2. 2. Most Usefull Regex By Examples 1. 2. 3. 4. 5. Regex Number with Range Regex Allow Only Number Regex Number Range Regex Signed Integer Regex Comma as the thousand separator and the dot as the decimal separator 6. Regex Five Integer US ZIP Code 7. Regex Positive Integer 8. Regex non zero positive integer 9. Regex Integer with 1000s Separator 10. Regex Hexadecimal Numbers 11. Regex Hexadecimal Number with Range 12. Regex Binary Number http://www.youtube.com/zarigatongy
3. 3. • Five Integer US ZIP Code ^d{5}\$ • Matches 33333 | 55555 | 23445 • Non-Matches abcd | 1324 | as;lkjdf http://www.youtube.com/zarigatongy
4. 4. Positive Integer ^d+\$ • Matches 123 | 10 | 54 • Non-Matches -54 | 54.234 | abc http://www.youtube.com/zarigatongy
5. 5. • Non zero positive integer ^(0+[1-9]|[1-9])[0-9]*\$ • Matches 122, 9992, 000022 • Non-Matches 0, 00000, 1.2, -3.22 http://www.youtube.com/zarigatongy
6. 6. • Integer with 1000s Separator ^[1-9]{1}[0-9]{0,2}([.,]?[0-9]{3})*\$ • Matches 1,000|1.000|1|10|100|1000 • Non-Matches 1,00|1,0|1,,000|.1|10. http://www.youtube.com/zarigatongy