Gjs has standard javascript regexps built in, so you should be able to get
all the info you need from MDN here <
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp>
and here <
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions>
.
Alternatively, nearly everything in GLIb is available to gjs, so you should
be able to use its simple XML parser <
https://developer.gnome.org/glib/stable/glib-Simple-XML-Subset-Parser.html>
.
On Sat, 22 Jun 2019 at 06:30, Τάσος Λισγάρας via javascript-list <
[email protected]> wrote:
Hello,
I download a page and I want to parse it so I can get specific data from
it. Unfortunately, I didn't find any ready-made library ( in GJS ) for
HTML parsing, so I turn to regular expressions.
Because the documentation doesn't help me at all, can you please tell
me, how I can use the regular expressions in GJS ?
( my code is not running because I don't use the GJS regex library
properly )
Thanks in advance for your time.
Anastasios.
_______________________________________________
javascript-list mailing list
[email protected] https://mail.gnome.org/mailman/listinfo/javascript-list
--
TH
<div dir="ltr">Gjs has standard javascript regexps built in, so you should be able to get all the info you need from MDN <a href="
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp">here</a> and <a href="
https://
developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions">here</a>.<div><br></div><div>Alternatively, nearly everything in GLIb is available to gjs, so you should be able to use its <a href="
https://developer.gnome.org/glib/stable/glib-
Simple-XML-Subset-Parser.html">simple XML parser</a>.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 22 Jun 2019 at 06:30, Τάσος Λισγάρας via javascript-list <<a href="mailto:
[email protected]">
[email protected]</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_-9214988603991466244ydpbb4ea96cyahoo-style-wrap" sty