Input data:
link /? param = value
link /
link / section /
Weekends:
link
How to get everything before a slash (replacement expression) with a regular?
Added a third option in the input.
Trying to get this: (. +? /)
In the third case issues: link / section /
(.*?)/, if complete match, then.*?(?=\/)- Mike([^\/]+)- coder675