Re: Trouble figuring out xmlregexp regular expressions

Timothy Wrona via xml <[email protected]> Sat, 20 Mar 2021 14:29:06 -0400
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <CAGrOMv1SybwvBDeC6pBORft5q4C4nnzaGe6LY4GOE6o7BhX+Vw@mail.gmail.com>
--===============6733648959923663902==
Content-Type: multipart/alternative; boundary="000000000000bbae8905bdfc02d7"

--000000000000bbae8905bdfc02d7
Content-Type: text/plain; charset="UTF-8"

Thanks Mike! That is really helpful :)

I think I have a basic understanding of how it works now and have figured
out how to compile and execute basic regular expressions.

It's still not really clear what some of the other functions mean though.
There are things about "regular expression context" that aren't really
clear. I probably won't have to use these features though but it would be
nice if they had documentation so I could understand what their purpose is.

Thanks,
Tim

On Sat, Mar 20, 2021 at 7:54 AM Mike Dalessio <[email protected]>
wrote:

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

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

<div dir=3D"ltr">Thanks Mike! That is really helpful :)<div><br></div><div>=
I think I have a basic understanding of how it works now and have figured o=
ut how to compile and execute basic regular expressions.</div><div><br></di=
v><div>It&#39;s still not really clear what some of the other functions mea=
n though. There are things about &quot;regular expression context&quot; tha=
t aren&#39;t really clear. I probably won&#39;t have to use these features =
though but it would be nice if they had documentation so I could understand=
 what their purpose is.</div><div><br></div><div>Thanks,</div><div>Tim</div=
></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr"=
>On Sat, Mar 20, 2021 at 7:54 AM Mike Dalessio &lt;<a href=3D"mailto:mike.d=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex"><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 that exercises it. You may want to t=
ake a look at=C2=A0<a href=3D"https://gitlab.gnome.org/GNOME/libxml2/-/blob=
/master/testRegexp.c" target=3D"_blank">https://gitlab.gnome.org/GNOME/libx=
ml2/-/blob/master/testRegexp.c</a>.</div><div><br></div><div>-m</div><div><=
br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma=
il_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" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">H=
i,<div><br></div><div>I am working on a library that will need to parse str=
ings using regular expressions conformant to the XML Schema regular express=
ion grammar (<a href=3D"https://www.regular-expressions.info/xml.html" targ=
et=3D"_blank">https://www.regular-expressions.info/xml.html</a>). I ended u=
p coming across libxml2 and it looks very promising, but I can&#39;t seem t=
o figure out how the xmlregexp=C2=A0portion of the library works. I read th=
rough the autogenerated documentation <a href=3D"http://xmlsoft.org/html/li=
bxml-xmlregexp.html" target=3D"_blank">http://xmlsoft.org/html/libxml-xmlre=
gexp.html</a>, but it isn&#39;t really clear exactly where to start. Is the=
re anywhere I can find some examples of the 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>
</blockquote></div>

--000000000000bbae8905bdfc02d7--

--===============6733648959923663902==
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

--===============6733648959923663902==--