Solved

Emacs Question:  How to delete all occurances of <whatever> and </whatever>

Posted on 2004-10-06
2
233 Views
Last Modified: 2010-08-05
Hello everyone,

Using emacs, I'm trying to delete all tags of <whatever> and </whatever>  (whatever being any tags that start with < and end with > ).  So what I did was:

M-x query-replace-regexp
then typed without quotes  ' <.*?> '
and didn't type anything to replace it with.

This worked for all tags that were on the same line but for those that weren't, it did not delete.  Does anyone know what I could do to make this work?

Thanks for your help :)
0
Comment
Question by:justinmaurer
2 Comments
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 500 total points
ID: 12241545
Try '<[^>]*>'  instead.

0
 

Author Comment

by:justinmaurer
ID: 12241625
thank you much!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now