[Solved] Remove LaTex Tag with perl

view full story

http://www.unix.com – Hi, i am trying to remove all LaTex tags (\index{text} from a big input file, using perl. My current approach which does not work is the following. Code: perl -ne '$/=undef; s/\\index\{*?\}//g; print' < $CWD/$OUTPUT.txt > tmp.txt But the tags still remain in the text. Can somebody tell my what I am doing wrong. Regards, Jan Moderator's Comments: Please use next time code tags (HowTos)