Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.regexp > #81

Re: Help with RexExp in English?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Heinz Kesting <Nobody@invalid.invalid>
Newsgroups fr.comp.lang.regexp
Subject Re: Help with RexExp in English?
Date Sun, 11 Jun 2017 12:16:53 +0200
Organization solani.org
Lines 37
Message-ID <ohj5ai$ttk$1@solani.org> (permalink)
References <ohhfer$vv5$1@solani.org> <5397fb215ea33b88eb24619edfcc25169f1a0659@news.nemoweb.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace solani.org 1497176210 30644 eJwFwQkBACAIBLBK/GAcRK5/BDfX4Ji08DCHoyyQniy9+nTPkVzIBZNrWF3kI3DPWhcxzQcTrREB (11 Jun 2017 10:16:50 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 11 Jun 2017 10:16:50 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
X-NNTP-Posting-Host eJwFwQkBwDAIA0BLfIEiZw3Fv4TdwVOTFYkMLNah2uz9tGiCa6ZBvvMuZrdJ1mAg4+DjkR8fsRG7
X-User-ID eJwNxsERACEIA8CWEEnwykGG9F+Ct6/F5mJnEAwIymnRvpGsQEhZ5bdUnuPjcOyIit42nKT+th2cGymsmgd6KBZR
In-Reply-To <5397fb215ea33b88eb24619edfcc25169f1a0659@news.nemoweb.net>
Cancel-Lock sha1:PIF7xrtht5Irp6wiThUEsA/80PI=
Xref csiph.com fr.comp.lang.regexp:81

Show key headers only | View raw


Hi,
> 
> This could be a first step :
> <https://www.google.fr/?gws_rd=ssl#q=english+regexp+forum>
> 

Thanks for this, but I'd prefer to find a forum in a newsreader, like 
thunderbird, not in a web interface with all its adverts and distractions.

Could you be so kind and allow here an exception for me in English, please?
I am looking for a RegExp that would match the following pattern:

[Any alphanumeric text][<a href="][Any alphanumeric text][<a href="][Any 
alphanumeric text][<a/>]

I need this for a text which is intended to be displayed later in a 
web-like editor with hyperlinks.
I'd like to make sure that the hyperlinks are correctly inserted, before 
the text goes into the web display. So the following pattern would be OK 
and must not be a match:

[Any alphanumeric text][<a href="][Any alphanumeric text][<a/>][Any 
alphanumeric text][<a href="][Any alphanumeric text][<a/>]

I tried patterns like '<a href=.+?^[<a/>].+?<a href=.+?</a>'
which was intended to work like:

'<a href=' not being followed by '<a/>' but 'any alphanumeric text' and 
a second '<a href=">'

in other words if '<a href=' is not followed by '</a>' but a second '<a 
href=' that's faulty and must be matched and reported for correction.

Hope I could explain well enough ...

Thanks for any help on this!
Kind regards, Heinz

Back to fr.comp.lang.regexp | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Help with RexExp in English? Heinz Kesting <Nobody@invalid.invalid> - 2017-06-10 20:57 +0200
  Re: Help with RexExp in English? Duzz' <jsuis@jreste.invalid> - 2017-06-10 20:42 +0000
    Re: Help with RexExp in English? Heinz Kesting <Nobody@invalid.invalid> - 2017-06-11 12:16 +0200
      Re: Help with RexExp in English? Olivier Miakinen <om+news@miakinen.net> - 2017-06-11 12:55 +0200
        Re: Help with RexExp in English? Heinz Kesting <Nobody@invalid.invalid> - 2017-06-11 23:21 +0200
          Re: Help with RexExp in English? Olivier Miakinen <om+news@miakinen.net> - 2017-06-12 00:36 +0200
            Re: Help with RexExp in English? Heinz Kesting <Nobody@invalid.invalid> - 2017-06-16 00:08 +0200
              Re: Help with RexExp in English? Olivier Miakinen <om+news@miakinen.net> - 2017-06-16 01:10 +0200
                Re: Help with RexExp in English? Heinz Kesting <Nobody@invalid.invalid> - 2017-06-18 12:14 +0200
                Re: Help with RexExp in English? Olivier Miakinen <om+news@miakinen.net> - 2017-06-18 19:05 +0200
  Re: Help with RexExp in English? Logan Won-Ki Lee <logan.wonki.lee@gmail.com> - 2021-07-14 12:19 +1000
    Re: Help with RexExp in English? Olivier Miakinen <om+news@miakinen.net> - 2021-07-14 09:23 +0200
      Re: Help with RexExp in English? Otomatic <otomatic@oto.invalid> - 2021-07-14 17:09 +0200

csiph-web