Regular Expressions 101

Sponsors

Library entries

1
javascript

Starbucks

no * before the name
Submitted by anonymous - 3 years ago
1
javascript

Egypt Phone Number Validation

no description available
Submitted by anonymous - 2 years ago
1
javascript

capture production

no description available
Submitted by anonymous - 3 years ago
1
javascript

map json

no description available
Submitted by anonymous - 2 years ago
1
javascript

word boundary position

no description available
Submitted by anonymous - 2 years ago
1
javascript

matching numbers

no description available
Submitted by anonymous - 2 years ago
1
javascript

matching phone numbers

no description available
Submitted by anonymous - 2 years ago

Separate path string to dir, filename (with extension), file (without extension) and extension. Groups is named

Vote

1

Regular Expression
javascript

/
(?<dir>.+?)\/?(?<file>(?<name>\w+)\.(?<ext>\w+))?$
/
mg

Description

Loading markdown...
Submitted by anonymous - 2 years ago