Regular Expressions 101

Sponsors

Library entries

1
java

标点

匹配大部分标点
Submitted by anonymous - a year ago
1
java

sfdgvsdgdfg

dgfdgdf
Submitted by anonymous - a year ago
1
java

11

11
Submitted by 11 - 10 months ago
1
java

Rick Roll

Matches chorus of Never Going to Give You Up
Submitted by Stephen Battista - 7 months ago
1
java

IP Address

(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by anonymous - 17 days ago

Regular expression for capturing dates and date ranges.

Vote

1

Regular Expression
java

"
((?:\d{1,2}-)?\d{1,2})(?:st|nd|rd|th)?[ ./-](feb|\d{1,2})(?:[ ./-](\d{2,4}))?|(feb|\d{1,2})[ ./-]((?:\d{1,2}-)?\d{1,2})(?:st|nd|rd|th)?(?:[ ./-](\d{2,4}))?
"
igm

Description

Loading markdown...
Submitted by Matey Krastev - 4 months ago