I should apologize for the response I sent. For some reason, the
original post was showing in my mailbox as today so I responded. Now
it's showing up as having shown up Nov. 14, 2003 and I see several
responses from back then! Bizarre. My apologies for any confusion that
may have caused.
On Friday, November 14, 2003, at 07:25 AM, xweb wrote:
Can someone help me about a regular ?
In which way i can substitute a href=$urlstring/a with
idlink$val1.
I'm not sure I understand exactly what you're asking. Do you mean you
want to take the value of $url and place it where $val1 occurs
Thanks all but...
I don't explain well the problem!
So, i'm processing a very big text file ( from A DB ) in this format
number|field 1|field2| field 3| etc. Every line is a record.Every line
contains many url.
I'm interested about specific url and i don't consider the others.
while ( $line =~
On 11/17/03 2:52 AM, xweb [EMAIL PROTECTED] wrote:
Thanks all but...
I don't explain well the problem!
So, i'm processing a very big text file ( from A DB ) in this format
number|field 1|field2| field 3| etc. Every line is a record.Every line
contains many url.
I'm interested about specific
Can someone help me about a regular ?
In which way i can substitute a href=$urlstring/a with
idlink$val1.
Thanks
Paolo
I'm guessing you want 'string' to be what follows 'idlink'? If so,
this ought to work:
$url =~ s/a href.*?(.*?)\/a/idlink$1/i;
Change the 'i' at the end to 'gi' (for global, insensitive) to have
it process a string with multiple URLs.
HTH,
Dan
Can someone help me about a regular ?
In which
I think this is what you are looking for:
$string =~ s/\a\s*href\=\(.*?)\\.*?\\/a\/\idlink\$1/;
If you want to capture the link text as well, put brackets around the 2nd
'.*?' and reference it as $2.
Hope that's what you are after.
Conrad
On 11/14/03 8:25 AM, xweb [EMAIL PROTECTED] wrote:
Paolo,
try
s:a href=$urlstring/a:idlink$val1:
note by using : as the replacement delimiters, you don't have to
escape the forward slashes. You will have to worry if the strings you
have there contain colons tho, although your variable strings should be
ok
Dave
On Nov 14,