Regular Expressions 101

Sponsors

Library entries

0
golang

Jira issue number

Matches and catches Jira issue number
Submitted by anonymous - 2 months ago
0
golang

Golang Docker matcher

Used by me for docker-retagger
Submitted by Roman Minebaev - 2 months ago
0
javascript

Email regex

email regex with subdomain
Submitted by anonymous - 2 months ago
0
javascript

Get YouTube ID in link

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

only .ts .tsx .js .jsx

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

replace text in tag

find and replace text in tag
Submitted by anonymous - 2 months ago
0
javascript

UA phone number

check ua phone number
Submitted by anonymous - 2 months ago

Finding All assets RegEx

Vote

0

Regular Expression
javascript

/
(?:(?:src\=)|(?:data-backgroundImage\=)|(?:data-image\=)|(?:url\()|(?:url[\"\']*\:)|(?:href\=)|(?:rel\=))\s*[\'\"]?\s*([(?http:)(?https:)]*[(?:\/\/)*(?:\.\.\/)*]*)?(([^\:\n\;\*\"\?\<\>\{\}\|\=\!\@\$\^\/]*\.([a-zA-Z][a-zA-Z0-9]{1,4}))?\/*([^\:\n\;\*\"\?\<\>\{\}\|\=\!\@\$\^]+\.([a-zA-Z][a-zA-Z0-9]{1,4})))[\'\"\)\;\s\?\>]
/
gi

Description

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