in reply to Re: What does this regex do?
in thread What does this regex do?

That "explanation" didn't go quite right -- the OP's regex is not trying to match a literal "/" at the beginning or a literal "/gs" at the end.