Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. LINUX.DEBIAN.MAINT.GTK.GN
  • GJS : How can I use Regex ( parse HTML ) ?

    From Tony Houghton@21:1/5 to [email protected] on Sat Jun 22 15:00:01 2019
    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 &lt;<a href="mailto:[email protected]">
    [email protected]</a>&gt; 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
  • From Emmanuele Bassi@21:1/5 to [email protected] on Sat Jun 22 17:00:02 2019
    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]

    <div dir="ltr"><div>You cannot parse HTML with regular expressions:</div><div><br></div><div><a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454">https://stackoverflow.com/questions/
    1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454</a></div><div><br></div><div>Ciao,</div><div> Emmanuele.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 22 Jun 2019 at 06:30,
    Τάσος Λισγάρας via javascript-list &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; 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_7382679616033776806ydpbb4ea96cyahoo-style-wrap" style="font-family:lucida console,sans-serif;font-size:16px"><div dir="ltr">Hello,<br></div><div dir="ltr"><br></di
  • Who's Online

  • Recent Visitors

    • Krenn
      Sun Jun 7 03:07:26 2026
      from Sydney, Nsw via Telnet
    • Krenn
      Sun Jun 7 01:30:12 2026
      from Sydney, Nsw via Telnet
    • Centurion
      Sat Jun 6 23:27:30 2026
      from Berea, Ohio via Telnet
    • Ab Cadd
      Sat Jun 6 15:42:53 2026
      from Sheboygan, Wi via Telnet
    • Centurion
      Sat Jun 6 15:32:28 2026
      from Berea, Ohio via Telnet
    • Krenn
      Sat Jun 6 11:38:56 2026
      from Sydney, Nsw via Telnet
    • Furryboy
      Sat Jun 6 10:56:29 2026
      from Romania, Galati via SSH
    • Centurion
      Fri Jun 5 22:28:01 2026
      from Berea, Ohio via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 715
    Nodes: 16 (0 / 16)
    Uptime: 161:44:52
    Calls: 12,094
    Calls today: 2
    Files: 15,000
    Messages: 6,517,778

© >>> Magnum BBS <<<, 2026