Search Results

Search: Posts Made By: bisbell
3,718
Posted By m.d.ludwig
From perlvar, undefining the input record...
From perlvar, undefining the input record separator causes <> to read an entire file at a time. And from perlvar, $& is the string matched by the regex <a\s+href.*?/refrnc/.*?>.*?</a>.

I also...
3,718
Posted By k_manimuthu
perl -i -pe ' BEGIN{undef $/;}$bak=$_; while...
perl -i -pe '
BEGIN{undef $/;}$bak=$_;
while ($bak=~m/<A\s+HREF.*?<\/A>/gs){$x=$y=$&; $y=~ s/\s+/ /g; $_=~s/$x/$y/gs;}
' temp.txt
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy