Fix for regexps containing / character

This still **work in progress** will be posting updates as progress.