Regular Expressions 101

Community Patterns

10

entity

Python
no description available
Submitted by anonymous - 8 years ago
5

Form Tag

Python
Form Tag
Submitted by Jay Patel - 8 years ago
5

psswd

Python
no description available
Submitted by anonymous - 8 years ago
5

Match Only Text

Python
no description available
Submitted by anonymous - 8 years ago
4

import url image

Python
import url image
Submitted by bartimeys - 8 years ago
8

repeat group match

Python
no description available
Submitted by anonymous - 9 years ago
9

domain - host

Python
no description available
Submitted by anonymous - 8 years ago

best youtube id match ( iframe embed replace ready )

8

Regular Expression
Recommended
PCRE (PHP <7.3)

/
(?:https?:)?(?:\/\/)?(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*
/
gim

Description

Loading markdown...
Submitted by mi-ca.ch - 5 years ago