Regular Expressions 101

Sponsors

Library entries

0
python

Remove ANSI escape codes

Remove ANSI escape codes
Submitted by anonymous - 3 hours ago
0
pcre2

嵌入条件

嵌入条件
Submitted by anonymous - 3 hours ago
0
pcre2

Ipv4 validation

regex for ip validation
Submitted by Amper - a day ago
0
pcre2

Split The Phone Numbers

Split The Phone Numbers
Submitted by anonymous - a day ago
0
pcre2

optional character

match strings with some optional characters
Submitted by anonymous - 5 days ago
0
pcre2

optional

optional
Submitted by anonymous - 5 days ago
0
python

Pick third section

Pick third section
Submitted by Charles - 6 days ago

Strip out domain extensions except for Microsoft .net technologies.

Vote

3

Regular Expression
pcre

/
(^|\s)(?!\b(?:basic|studio|asp|v[bs]|c\#)\.net)(\w+)(?:\.co\.[a-z]{2}|\.[a-z]{2,6})\b
/
gi

Description

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