| |
RegularExpressions
Page history
last edited
by PBworks 4 years, 6 months ago
| Title |
IPv6 address |
| Pattern |
^([0-9a-fA-F]{4}|0)(:([0-9a-fA-F]{4}|0)){7}$ |
| Matching Text |
3e4f:123f:c12a:5566:888e:9975:aaff:2344 ||| 3e4f:123f:c12a:0:0:0:0:2344 ||| 0000:0000:0000:0000:0000:000 |
| Non-Matching Text |
3e4f:123f:c12a:5566:888e:9975:aafg:2344 ||| 3e4f:123f:c12a:0:0:0:1:2344 ||| 0000:0000:0000:0000:0000:000 |
| Description |
IPv6 address (128 bit). Matches hexadecimal patterns and single 0 in the address. |
| Title |
Restrictd Ports |
| Pattern |
^(102[0-3]|10[0-1]d|[1-9][0-9]{0,2}|0)$ |
| Matching Text |
0 ||| 123 ||| 1023 |
| Non-Matching Text |
1024 ||| 9999 ||| 99999 |
| Description |
Matches numbers in range of 0 through 1023. |
| Title: |
US Currency |
| Expression: |
^$(d{1,3}(,d{3})*|(d+))(.d{2})?$ |
| Description: |
This re matches US currency format with lead dollar sign. Dollar value must have at least one digit and may or may not be comma separated. Cents value is optional. |
| Matches: |
$0.84|||$123458|||$1,234,567.89 |
| Non-Matches: |
$12,3456.01|||12345|||$1.234 |
RegularExpressions
|
|
Tip: To turn text into a link, highlight the text, then click on a page or file from the list above.
|
|
|
Comments (0)
You don't have permission to comment on this page.