I am trying to get the servername from the string as below: string: "R4:abcxyz45:LNX" From this I am trying to extract "abcxyz45" using regular expression. Below is the code I am using but not getting any return value. What I am doing wrong? any idea.
Thanks$str = "R4:abcxyz45:LNX"; $str =~ /[\w\d]+(^:[\w\d]+:$)\w+/;
In reply to Regexp help by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |