I have try few method to match a word that contain exact 3 times slash but cannot work. Below are the example
@array = qw( abc/ab1/abc/abc a2/b1/c3/d4/ee w/5
You need to match
^(?:[^\/]*
$string =~ /^(?:[^\/]*\/[^\/]*){3}$/;