Regular Expressions 101

Library entries

github user/repo regex

Vote

1

Regular Expression
python

"
^\#\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 - 5 years ago