/
^(([a-zA-Z0-9_-.+(\') ]+\/)[a-zA-Z0-9-.+(')]+)$
/
gm
^ asserts position at start of a line
1st Capturing Group (([a-zA-Z0-9\-.+(\') ]+\/)[a-zA-Z0-9-.+(')]+)
2nd Capturing Group ([a-zA-Z0-9\-.+(\') ]+\/)*
matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
A repeated capturing group will only capture the last iteration. Put a capturing group around the repeated group to capture all iterations or use a non-capturing group instead if you're not interested in the data
Match a single character present in the list below [a-zA-Z0-9_-.+(\') ]
matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive)
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
_ matches the character with index 9510 (5F16 or 1378) literally (case sensitive)
- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
. matches the character . with index 4610 (2E16 or 568) literally (case sensitive)
+ matches the character + with index 4310 (2B16 or 538) literally (case sensitive)
( matches the character ( with index 4010 (2816 or 508) literally (case sensitive)
\' matches the character ' with index 3910 (2716 or 478) literally (case sensitive)
) matches the character ) with index 4110 (2916 or 518) literally (case sensitive)
matches the character with index 3210 (2016 or 408) literally (case sensitive)
\/ matches the character / with index 4710 (2F16 or 578) literally (case sensitive)
Match a single character present in the list below [a-zA-Z0-9-.+(')]
matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive)
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
matches the character with index 9510 (5F16 or 1378) literally (case sensitive)
- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
. matches the character . with index 4610 (2E16 or 568) literally (case sensitive)
+ matches the character + with index 4310 (2B16 or 538) literally (case sensitive)
( matches the character ( with index 4010 (2816 or 508) literally (case sensitive)
') matches a single character in the list ') (case sensitive)
$ asserts position at the end of a line
From Regex 101
/ ^(([a-zA-Z0-9_-.+(\') ]+\/)[a-zA-Z0-9-.+(')]+)$ / gm ^ asserts position at start of a line 1st Capturing Group (([a-zA-Z0-9\-.+(\') ]+\/)[a-zA-Z0-9-.+(')]+) 2nd Capturing Group ([a-zA-Z0-9\-.+(\') ]+\/)*