in reply to regexp: match anything but "/"

A negated character class will do it,

if ( m![^/]! ) { # . . . }
I used a different match delimiter so I didn't have to escape "/".

After Compline,
Zaxo

Replies are listed 'Best First'.