Francis Paulin wrote:

Hi,

I'm trying to capture an evaluated pattern matching.
The code sample looks like that:

<snip>
# In the real script, these two scalars received their values from external
files
$stringFromFirstFile = "Test: trying to capture this part of the string";
$stringFromSecondFile = "^Test: (.*)"

[snip]



Someone knows how I can fix this? Thanks

Francis Paulin

I prefer to do it like this:


$string = 'this is a string to match';
$match = 'string ';

print (substr $string, (index $string, $match) + length $match );

-- mike higgins

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to