I want to capture the chars before the first '_' but what I end up with is:wppwd01a0099_NET_basp_virtual_adapter
The regular expression I'm trying is:wppwd01a0099_NET_basp_virtual
what am I doing wrong?if ( $this_server =~ m/^(\w+)_/ ) { $this_server = $1; }
In reply to minimal match regulara expression by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |