You are here: PSPad forum > English discussion forum > Special regular expression operator?
Posted by: maki | Date: 2019-04-30 12:18 | IP: IP Logged
Special regular expression operator excluding?
(?!pattern)
I tried to exclude the URL www, but it does not work!
And the question of what kind of operator is it and what it is for (I know it exists)
(?~pattern)
and
(?<!pattern>)
and
\b
and
\t
Posted by: pspad | Date: 2019-04-30 12:57 | IP: IP Logged
What should be the target?
You are asking again without any example, without information around.
There is many ways how to get what you need, but it's impoosoble without any information.
Posted by: maki | Date: 2019-04-30 13:57 | IP: IP Logged
pspad:You are asking again without any example, without information around.
Ignore all URLs that exist in the world. Also Unicode. That is universal for everything.
Wrong RegEx (test PSPad and other RegEx Tester!!!)
(?!https? <====This EMOTICON should not be here! This is a conflict on the forum!
Other I do not know, but you can add some one example of where the match.
Edited 4 time(s). Last edit at 2019-04-30 14:01 by maki.
Posted by: maki | Date: 2019-04-30 14:16 | IP: IP Logged
Not work for me:
^(?!www|https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.\-&\?=]*)*\/?$[^.!?0-9]+[.!?]
Posted by: pspad | Date: 2019-04-30 16:54 | IP: IP Logged
maki:Ignore all URLs that exist in the world.
Find dialog and regular expressions are for search something, not for ignore something.
Try the explanation again.
Posted by: vbr | Date: 2019-04-30 18:00 | IP: IP Logged
You have apparently found another regex features currently not supported in PSPad;
For explanation, I recommend the following comprehensive ressource:
(?<!pattern>)
is negative lookbehind assertion (the ">" seems to be a mistake here)
(?!pattern)
is negative lookahead assertion
see also: www.regular-expressions.info
I don't know (?~pattern)
but you may read about some uses of this tilde characters with regexps e.g.:
docs.perl6.org tilde
or simply search for "regular expressions tilde"
\b and \t can be easily looked up in the mentioned
www.regular-expressions.info
hth
vbr
Edited 1 time(s). Last edit at 2019-04-30 18:02 by vbr.
Posted by: maki | Date: 2019-04-30 22:47 | IP: IP Logged
vbr:l(?<!pattern>)
is negative lookbehind assertion (the ">" seems to be a mistake here)
<!/bth_><!/th_><!/pbprofile><!rss.png><!twitter.png><!/PhotobucketMKTG>i(.*)\.photobucket\.com/(.*)\.(jpg|jpeg|gif|png)$
And this pattern for which (engine Regex)?
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR