From: "cyber c." Date: 2012-06-13T05:24:52+09:00 Subject: Need simple Reg exp Hi, i have a string, str = "afp://XYZ/a/b/c/d" i need to extract "afp://XYZ" . Can anyone suggest a simple reg expression? -- Posted via http://www.ruby-forum.com/.