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
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!