Home
Tester
Reference
About
Pattern
(?<=/sub-dept/[^/]*-)[^/-]*(?=/$)
Input
https://www.example.com/my-suburl/sub-dept/xx-xxxx-xx-
yyyyyy
/
https://www.example.com/my-suburl/sub-dept/xx-xxxx-xx-yyyyyy/
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
1
match found in about
2
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
0
54
yyyyyy
https://www.example.com/my-suburl/sub-dept/xx-xxxx-xx-
yyyyyy
/
https://www.example.com/my-suburl/sub-dept/xx-xxxx-xx-
/