You are here: PSPad forum > English discussion forum > PSPad 5.0.0 64-bit Message: "Error in Search Expression"

PSPad 5.0.0 64-bit Message: "Error in Search Expression"

#1 PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: maki | Date: 2019-04-30 19:13 | IP: IP Logged

PSPad 5.0.0 64-bit Message: "Error in Search Expression"

image

Non-Matching a URL
Pattern:
^(?!www|https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/

Options: Reply | Quote | Up ^


#2 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: Andreas | Date: 2019-04-30 20:57 | IP: IP Logged

Yes, it's invalid. What's the point?

I told you once that you should play around with your regular expressions first at this site regex101.comhttps://regex101.com/before asking such questions in this forum. Or better search a regex forum to ask for regex help.

Options: Reply | Quote | Up ^


#3 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: maki | Date: 2019-04-30 21:37 | IP: IP Logged

Andreas - Nonsense!
Confirmed by many users that the pattern is good.
Can be added at the beginning of the pattern \
To avoid the "eternal match".
It still does not work in PSPad, in another text editor - it works 100%!!! smiling smiley

Regular Expression Engine Boost.Regex and Perl.

Edited 2 time(s). Last edit at 2019-04-30 21:41 by maki.

Options: Reply | Quote | Up ^


#4 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: Andreas | Date: 2019-04-30 23:06 | IP: IP Logged

Options: Reply | Quote | Up ^


#5 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: maki | Date: 2019-04-30 23:23 | IP: IP Logged

Andreas

Using the forward slash regular expression syntax JavaScript provides:

var urlexp = /^(https?:\/\/)?([da-z\.-]+)\.([a-z]{2,6})(\/(\w|-)*)*\/?$/gi

OR:
regex101.com/r/ynMzhl/2

Edited 2 time(s). Last edit at 2019-04-30 23:32 by maki.

Options: Reply | Quote | Up ^


#6 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: pspad | Date: 2019-05-01 03:43 | IP: IP Logged

Use PSPAD scripting and you can use your jscript reg exp syntax.

Options: Reply | Quote | Up ^


#7 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: maki | Date: 2019-05-01 09:07 | IP: IP Logged

But the application has stopped working. you can not restore correct operation in some cases. Given some regular expressions.
I need a list of regular expressions that can disrupt the engine.

Options: Reply | Quote | Up ^


#8 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: Stefan | Date: 2019-05-01 10:29 | IP: IP Logged

maki:
But the application has stopped working. you can not restore correct operation in some cases. Given some regular expressions.
I need a list of regular expressions that can disrupt the engine.

Then just use your "another text editor - it works 100%!!! smiling smiley

Problem solved.

 

 

 

--
Stefan (pleased user since 1722)
Do you know you can spend Jan a beer? (click here)
Inofficial FAQs + Infos + Special Settings

Options: Reply | Quote | Up ^


#9 Re: PSPad 5.0.0 64-bit Message: "Error in Search Expression"

Posted by: maki | Date: 2019-05-01 11:41 | IP: IP Logged

If something works, it does not mean that it works well. It may have a defect.
If it does not work well, you will not finish the task successfully. Do not pass, you get the grade 2, you did not deserve the six.

Options: Reply | Quote | Up ^






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