You are here: PSPad forum > English discussion forum > 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"
Non-Matching a URL
Pattern:
^(?!www|https?:\/\/)([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/
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.
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%!!!
Regular Expression Engine Boost.Regex and Perl.
Edited 2 time(s). Last edit at 2019-04-30 21:41 by maki.
Posted by: Andreas | Date: 2019-04-30 23:06 | IP: IP Logged
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.
Posted by: pspad | Date: 2019-05-01 03:43 | IP: IP Logged
Use PSPAD scripting and you can use your jscript reg exp syntax.
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.
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%!!!
Problem solved.
--
Stefan (pleased user since 1722)
Do you know you can spend Jan a beer? (click here)
Inofficial FAQs + Infos + Special Settings
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.
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