You are here: PSPad forum > English discussion forum > Special regular expression operator?

Special regular expression operator?

#1 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

Options: Reply | Quote | Up ^


#2 Re: Special regular expression operator?

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.

Options: Reply | Quote | Up ^


#3 Re: Special regular expression operator?

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?smiling smiley <====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.

Options: Reply | Quote | Up ^


#4 Re: Special regular expression operator?

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]+[.!?]

Options: Reply | Quote | Up ^


#5 Re: Special regular expression operator?

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.

Options: Reply | Quote | Up ^


#6 Re: Special regular expression operator?

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:

www.regular-expressions.info

(?<!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.

Options: Reply | Quote | Up ^


#7 Re: Special regular expression operator?

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)?

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2019 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR