Indeed a solution with \h is much easier!
use strict; use warnings; my $case1 = "Club: Some Club Comments: "; my $case2 = "Club: Comments: "; for ($case1,$case2){ /(Club:)\h*(.*?)\h*\n/; print "<$2>\n"; }
<Some Club> <>
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^3: Extracting sometimes null string from text variable
by LanX
in thread (Solved) Extracting sometimes null string from text variable
by Marshall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |