But using [A-z] and the * quantifier is not a very good idea, because it makes a rather weak regex and you may end up capturing things that you don't want.my ($date) = ($VAR1 =~ /([A-z]* [0-9]*.[0-9]*:[0-9]*:[0-9]*)/);
This might already be significantly better:
my ($date) = ($VAR1 =~ /(^\w+ \d+ \d+:\d+:\d+)/);
In reply to Re: Array of strings search
by Laurent_R
in thread Array of strings search
by maikelnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |