Regular Expressions 101

Library entries

0
pcre

strip host port

removes port number from URL
Submitted by pc - 4 days ago
0
pcre

Proxy Matcher

Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by dev.tntd2k2 - 7 days ago
0
pcre

latlonlatlon

gg
Submitted by anonymous - 8 days ago
1
golang

Home

Dj dus er geen je een je aan je enige eerst een he we er
Submitted by Webmaster - 18 days ago
1
pcre

ENEL T5 Mono

T
Submitted by anonymous - 19 days ago
0
golang

Get digits

Trying to get digits
Submitted by Arthur Silva - a month ago
0
golang

walter1976LastClean

walter1976LastClean
Submitted by anonymous - a month ago
0
pcre

Example 1.1: Pet Name

Example used in slide 39
Submitted by anonymous - a month ago
0
pcre

i++ in bash

asdf
Submitted by anonymous - a month ago

Capture optional HTML tag attributes in any order

Vote

0

Regular Expression
pcre2

/
<img\s+ (?=[^>]*\balt="(?<alt>[^>]*?)")? # optional alt attribute (?=[^>]*\bclass="(?<class>[^>]*?)")? # optional class attribute (?=[^>]*\bsrc="(?<src>[^>]*?)") # src attribute [^>]*\/>
/
gx

Description

Loading markdown...
Submitted by Patrick Janser - 4 months ago