Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-21-2004, 10:18 AM   #1
Registered: Mar 2004
Posts: 132

Rep: Reputation: 15
regexp search for [

I know that the bracket is used to construct a regular expression. But what do you do if you want to search for a pattern that consists of [[08]] ?
Old 06-21-2004, 01:01 PM   #2
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
quotes? "[[08]]"
Old 06-21-2004, 03:08 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Escape them?

Really depends on which tool and regex you're
talking about, too :)

Old 06-22-2004, 03:15 AM   #4
Registered: Mar 2004
Posts: 132

Original Poster
Rep: Reputation: 15
I should have thought of that! Thanks guys!


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
regexp help cliff76 Linux - Newbie 3 03-07-2008 03:15 PM
little help for regexp EmOuBi Linux - Newbie 6 08-06-2005 03:19 AM
Perl Regexp search-n-replace jpbarto Programming 2 06-16-2005 01:45 PM
regexp help ... pld Programming 1 03-15-2005 04:45 PM
Keeping part of a regexp in search/replace MadCactus Linux - General 4 09-29-2004 07:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 AM.

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
Open Source Consulting | Domain Registration