Search Results

Search: Posts Made By: sune
28,400
Posted By bartus11
Assuming all the curly braces are balanced: perl...
Assuming all the curly braces are balanced: perl -0ne 's/\\emph{//g;$i=0;while(/./gs){$i-- if $& eq "{";$i++ if $& eq "}"; if ($i<1){print $&}else{$i=0}}' infile > outfile
Showing results 1 to 1 of 1

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