
BillKSmith
Veteran
Dec 11, 2012, 8:35 PM
Post #2 of 4
(5951 views)
|
|
Re: [avalanche] Regular expression
[In reply to]
|
Can't Post
|
|
A minor fix to your regexpr will fix the problem as stated. You probably shoud consider the module Regex::Common::URI::http.
use strict; use warnings; my $line = 'URI configuration for name Just_name, URI uri name (1073741909)'; my ($A,$B) = $line =~ / ^URI\s+configuration\s+for\s+name\s+ ([^,]+) \, \s+URI\s+ ([^(]+)* \s+\( /x; print $A, "\n", $B, "\n"; Good Luck, Bill
|