in reply to Re^2: Extracting sometimes null string from text variable
in thread (Solved) Extracting sometimes null string from text variable

> Try \h (horizontal space) instead.

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!