LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] regex(5)

[ILUG] regex(5)

Mark McLoughlin mark at skynet.ie
Wed Apr 18 15:41:52 IST 2001


On Wed, 18 Apr 2001, Jerry Walsh wrote:

> Don't escape them! let them be free to do their groovy regex things - you
> need the ()'s and the pipe unescaped..

That totally depends on what regex(5) *syntax* you're using. Since we
don't have that information yet and \.(gif|jpg|jpeg)$ didn't work then
it was a safe guess that \.\(gif\|jpg\|jpeg\)$ would work. But it
doesn't, apparently.

So try \.(gif\|jpg\|jpeg)$ and  \.\(gif|jpg|jpeg\)$. One of the
combinations will work ;)

If you have the source and it uses the gnu regex library then try
grepping for 'RE_' in the source. This will tell you what syntax
you're using.

Good Luck,
Mark





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell