Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 2,300 community submitted regex patterns...
10
entity
Python
no description available
Submitted by
anonymous
-
9 years ago
1
...
113
114
115
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
Open regex in editor
Description
parses user/repo
Submitted by
luckydonald
-
8 years ago