TOOLSP
"
WELCOME !

Please ! Use [CODE] tags for your LINKS and CODE.
Favor usar balisas [CODE] para sus vínculos y código.
Merci d'utiliser les balises [CODE] pour vos liens et code.

[code]http://Thank.you[/code]
"
*** GITHUB ***
.
.
URL Resolver [GIT]
.
.
.
.
Jx Update [REDIRECT]
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
Latest topics
» Regex for my favori serie
Sun 24 Sep - 21:12 by beezlo

» help regex
Fri 22 Sep - 21:08 by mickydoo

» I need i little help please!
Wed 20 Sep - 18:24 by jujuuj

» some help with vaughn or ustream .TV
Wed 20 Sep - 0:56 by adrianhn

» Xbmc tool box / Xbmc gui (Kodi)
Mon 18 Sep - 18:16 by oxus

» how to play this in kodi
Mon 11 Sep - 8:25 by retrorat1

» Where to put your list
Sun 10 Sep - 14:29 by oxus

FRIENDS / PARTNERS

forum

créer un forum


Negative Lookahead (?!¤¤¤¤¤)

View previous topic View next topic Go down

Negative Lookahead (?!¤¤¤¤¤)

Post by Admin on Sun 16 Apr - 14:32

https://www.tvaddons.ag/forums/live-video-stream-link-sharing/17239-livestreams-xml-requests-2-a-1897.html#post411229

(?!unwanted)

This is used, for example, if you DON'T want that PLAYB0Y appears in the list ...
(?!PLAYB0Y)

Follow the link to get better examples ...

Admin

Messages : 33
Date d'inscription : 2017-03-28

View user profile http://toolsp.forumactif.com

Back to top Go down

Re: Negative Lookahead (?!¤¤¤¤¤)

Post by twogun on Tue 18 Apr - 17:00

Aside from Negative Lookahead there is also the similar function negative Lookbehind.  The advantage is that it makes it easier to define the unwanted item when it is at the end of the capture group (or after the capture group).  example:

Code:
<expres>url="(http.+)(?<!m3u8)"</expres>

Code:
url="http://something.mp4"  #---->   http://something.mp4
url="http://something.mkv"  #---->   http://something.mkv
url="http://something.m3u8"  #--->  No Match

of course for this example you can get the same results using Negative lookahead like this:
Code:
<expres>url="(?!.+m3u8)(http.+)"</expres>
But there may be cases where Negative Lookbehind is the better solution.
avatar
twogun

Messages : 33
Date d'inscription : 2017-04-03

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum