Correctly replace **/ with .* instead of .*/
Replace duplicate .* in the created regular expression