Regular Expressions 101

Sponsors

Library entries

0
pcre2

IBAN Ukraine

Checcking IBAN number for Ukraine
Submitted by anonymous - 10 months ago
0
pcre2

Mammars tumour dx

identifying mammary tumour diagnosis
Submitted by Georgia Salmon - 10 months ago
0
pcre2

Вся строка начиная со слова

а
Submitted by anonymous - 10 months ago
0
pcre2

hexadecimal

Hexadecimal regex
Submitted by anonymous - 10 months ago
0
pcre2

Octal regex

Octal regex
Submitted by anonymous - 10 months ago
0
pcre2

thx hjpotter

Thanks
Submitted by hjpotter92 - 10 months ago
0
pcre2

Coordinates Validation

This is for validating coordinates
Submitted by anonymous - 10 months ago

Port range validation

Vote

0

Regular Expression
pcre2

/
(^([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])$)| (^([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])-([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])$)|((?<=,|^)([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])(?=,|$),?)|((?<=,|^)([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])-([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])(?=,|$),?)
/
gm

Description

Loading markdown...
Submitted by anonymous - 10 months ago