Regular Expressions 101

Community Patterns

0

why

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 7 years ago
2

get href

ECMAScript (JavaScript)
gets value of href
Submitted by me - 8 years ago

github user/repo regex

1

Regular Expression
Python

r"
^\#\s* # must start with "#" to indicate beeing a repo. (?:@?@?(?!-)(?P<user>(?:[a-zA-Z0-9]|-(?!-))+[a-zA-Z0-9])(?![^\x00-\x7F]))? # Username part (?:(?<=\#)|[/\s\.](?<!\v))(?P<repo>[a-zA-Z0-9_.-]+)$
"
gmix

Description

Loading markdown...
Submitted by luckydonald - 8 years ago