LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-15-2003, 12:59 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 14

Rep: Reputation: 0
Regular expressions

I need a regular expression that says:
output any text outside contents
of < >.
For example, in the text ->
Let me <go home> tonight ...
My regular expression needs to output
"let me " and " tonight".
Important: I want special characters
like "l', ?, , / etc..." that may be outside
the < > to also be displayed.
Old 10-15-2003, 01:29 PM   #2
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
something like
sed 's/<.*>//g' filename


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expressions markjuggles Programming 2 05-05-2005 12:39 PM
Perl and Regular Expressions Fonk Programming 1 06-27-2004 12:32 PM
Regular Expressions overbored Linux - Software 3 06-24-2004 03:34 PM
help with REGULAR EXPRESSIONS ner Linux - General 23 11-01-2003 12:09 AM
regular expressions? alaios Linux - General 2 06-11-2003 04:51 PM

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration