Re: Trouble figuring out xmlregexp regular expressions

Mike Dalessio via xml <[email protected]> Sat, 20 Mar 2021 07:54:09 -0400
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <CAGJbjKbxskn5XPpsm4xL_fzOPo5tk7SViZ4cAEkOUA59iRbMgQ@mail.gmail.com>
--===============8424669059680897571==
Content-Type: multipart/alternative; boundary="0000000000003bafa005bdf67e3b"

--0000000000003bafa005bdf67e3b
Content-Type: text/plain; charset="UTF-8"

Hi Tim,

I don't know much about the regular expression support, but there does
appear to be a test harness that exercises it. You may want to take a look
at https://gitlab.gnome.org/GNOME/libxml2/-/blob/master/testRegexp.c.

-m


On Sat, Mar 20, 2021 at 12:05 AM Timothy Wrona via xml <[email protected]>
wrote:

> Hi,
>
> I am working on a library that will need to parse strings using regular
> expressions conformant to the XML Schema regular expression grammar (
> https://www.regular-expressions.info/xml.html). I ended up coming across
> libxml2 and it looks very promising, but I can't seem to figure out how the
> xmlregexp portion of the library works. I read through the autogenerated
> documentation http://xmlsoft.org/html/libxml-xmlregexp.html, but it isn't
> really clear exactly where to start. Is there anywhere I can find some
> examples of the regular expression portion of the library in use?
>
> Thanks,
> Tim
> _______________________________________________
> xml mailing list, project page  http://xmlsoft.org/
> [email protected]
> https://mail.gnome.org/mailman/listinfo/xml
>

--0000000000003bafa005bdf67e3b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Tim,<div><br></div><div>I don&#39;t know much about the=
 regular expression support, but there does appear to be a test harness tha=
t exercises it. You may want to take a look at=C2=A0<a href=3D"https://gitl=
ab.gnome.org/GNOME/libxml2/-/blob/master/testRegexp.c" target=3D"_blank">ht=
tps://gitlab.gnome.org/GNOME/libxml2/-/blob/master/testRegexp.c</a>.</div><=
div><br></div><div>-m</div><div><br></div></div><br><div class=3D"gmail_quo=
te"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Mar 20, 2021 at 12:05 AM =
Timothy Wrona via xml &lt;<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex"><div dir=3D"ltr">Hi,<div><br></div><div>I am working on a li=
brary that will need to parse strings using regular expressions conformant =
to the XML Schema regular expression grammar (<a href=3D"https://www.regula=
r-expressions.info/xml.html" target=3D"_blank">https://www.regular-expressi=
ons.info/xml.html</a>). I ended up coming across libxml2 and it looks very =
promising, but I can&#39;t seem to figure out how the xmlregexp=C2=A0portio=
n of the library works. I read through the autogenerated documentation <a h=
ref=3D"http://xmlsoft.org/html/libxml-xmlregexp.html" target=3D"_blank">htt=
p://xmlsoft.org/html/libxml-xmlregexp.html</a>, but it isn&#39;t really cle=
ar exactly where to start. Is there anywhere I can find some examples of th=
e regular expression=C2=A0portion of the library in use?<div><br></div><div=
>Thanks,</div><div>Tim</div></div></div>
_______________________________________________<br>
xml mailing list, project page=C2=A0 <a href=3D"http://xmlsoft.org/" rel=3D=
"noreferrer" target=3D"_blank">http://xmlsoft.org/</a><br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a><br>
<a href=3D"https://mail.gnome.org/mailman/listinfo/xml" rel=3D"noreferrer" =
target=3D"_blank">https://mail.gnome.org/mailman/listinfo/xml</a><br>
</blockquote></div>

--0000000000003bafa005bdf67e3b--

--===============8424669059680897571==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml

--===============8424669059680897571==--