?
Solved

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

Posted on 2004-10-06
2
Medium Priority
?
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

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

0
 

Author Comment

by:justinmaurer
ID: 12241625
thank you much!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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