Regular Expressions 101

Sponsors

Library entries

0
dotnet

15.02.2022 15:00:00

15.02.2022 15:00:00
Submitted by anonymous - 9 hours ago
0
dotnet

Minimum 10 herhangi dijit

Minimum 10 herhangi dijit
Submitted by anonymous - 9 hours ago
0
dotnet

USD

USD
Submitted by anonymous - 9 hours ago
0
dotnet

01 Jan 2022 Mon 01:02:03

01 Jan 2022 Mon 01:02:03
Submitted by anonymous - 9 hours ago
0
dotnet

^[A-Z,a-z,\-, ,\&]+$

Koray Bilgi, Text-Regex
Submitted by anonymous - 9 hours ago
0
dotnet

MMM DDD YYYY

FEB MON 2023
Submitted by anonymous - 9 hours ago
0
pcre

User-Agent

Parser
Submitted by sn3kdev - 4 days ago
0
pcre

Parcing2

aa
Submitted by anonymous - 6 days ago
0
pcre

trim phone number

trim phone number
Submitted by anonymous - 6 days ago
0
java

Business Address | WI | Trademark | USA

s
Submitted by anonymous - 7 days ago
0
java

carbon

test1
Submitted by anonymous - 7 days ago
0
golang

log timestamp

extract time stamp from log entry
Submitted by anonymous - 7 days ago
0
dotnet

Match IPv4 Valid

expression to capture valid IP
Submitted by anonymous - 10 days ago
0
pcre

NMEA after timestamps

Picks up (most?) NMEA messages.
Submitted by David Harrison - 16 days ago
0
dotnet

Get h1-6 tag

(.*?)
Submitted by OlegBel - 20 days ago

Between tags content

Vote

17

Regular Expression
pcre

/
(?P<group>(?P<starttag><(?P<tagname>p)[^>]*>)(?P<data>.*)(?P<endtag><\/\3>))
/
gm

Description

Loading markdown...
Submitted by Agustín Bouillet - 7 years ago