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

Emmanuele Bassi via javascript-list <[email protected]>
Newsgroups gmane.comp.gnome.javascript,gmane.linux.debian.devel.gtk-gnome
Message-ID <CALnHYQG0NjuFGcnq--PoV_bejVJVBV_Lq4z=w9h2Wg_UwdY=VQ@mail.gmail.com>
You cannot parse HTML with regular expressions:

https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454

Ciao,
 Emmanuele.


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
>


-- 
https://www.bassi.io
[@] ebassi [@gmail.com]

_______________________________________________
javascript-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/javascript-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.