Sorry because I'm new to RegEx. I want to find all the hyphens inside the parentheses in this string:
$router->get('template-123s', 'Template123Controller@index')->name('template-123s');
$router->get('template-123s/{id}', 'Template123Controller@show')->name('get-template-123');
The hyphens outside the parenthesis must not be matched (for example, the first occurrence of the hyphen (..ter->get..
) in the string and I'm having a hard time solving this problem.
Here is a sample attempt of matching all the characters between the hyphens and it works.