Regular Expressions 101

Sponsors

Library entries

0
javascript

Get YouTube ID in link

regex for get video id in link
Submitted by anonymous - 4 months ago
0
javascript

only .ts .tsx .js .jsx

get files extension
Submitted by HZ - 4 months ago
0
javascript

replace text in tag

find and replace text in tag
Submitted by anonymous - 4 months ago
0
pcre2

Php

Php
Submitted by Nickname - 4 months ago
0
java

CDATA Matcher

Matches CDATA sections while disallowing nesting
Submitted by anonymous - 4 months ago
0
pcre2

track OM cash out

cash out tracker
Submitted by anonymous - 4 months ago
0
javascript

UA phone number

check ua phone number
Submitted by anonymous - 4 months ago

conditional phone numbers

Vote

0

Regular Expression
python

"
(\()?(\d{3})(?(1)\)|)([\.\s-])?(\d{3})(?(3)[\.\s-]|[\.\s-]?)(\d{4})
"
gm

Description

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