using non-Emacs regexp syntax

From:

Paul Pogonyshev

Subject:

using non-Emacs regexp syntax

Date:

Tue, 28 Nov 2006 22:56:32 +0200

User-agent:

KMail/1.7.2

Hi,
Is there a function to convert non-Emacs regexps (e.g. "ab(c+|d)" to
Emacs regexps (example to "ab\(c+\|d\)")?
If there is none, are you interested in adding such functions? (Of
course, not now, but after the release.) I assume it is not worth it
to implement in C, so a Lisp implementation is in order?
(Abstract task is like this: be able to read regexps from an (XML)
file, which should be readable not only by Emacs; since Emacs syntax
is not widespread, regexps would use a different syntax.)
Paul