Re: GJS : How can I use Regex ( parse HTML ) ?



Gjs has standard _javascript_ regexps built in, so you should be able to get all the info you need from MDN here and here.

Alternatively, nearly everything in GLIb is available to gjs, so you should be able to use its simple XML parser.

On Sat, 22 Jun 2019 at 06:30, Τάσος Λισγάρας via _javascript_-list <_javascript_-list gnome org> 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
_javascript_-list gnome org
https://mail.gnome.org/mailman/listinfo/_javascript_-list


--
TH



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]