Solved

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

Posted on 2004-10-06
2
236 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

839 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