You are here: PSPad forum > English discussion forum > regex101.com
Posted by: maki | Date: 2019-05-01 07:26 | IP: IP Logged
regex101.com
I modified and tested the pattern, each time without a match
1. Count Sentences
1a.. Ignore the author's simple name. The minimum allowed is 2 characters.
2. Ignore all URLs
3. Ignore Russian Word
Edited 1 time(s). Last edit at 2019-05-01 07:28 by maki.
Posted by: pspad | Date: 2019-05-01 07:48 | IP: IP Logged
So now you are happy, cause you have your tool.
Posted by: maki | Date: 2019-05-01 08:32 | IP: IP Logged
pspad:So now you are happy, cause you have your tool.
You're kidding me ?! After all these complex expressions does not work.
My pattern or other proposed patterns of users - do not work.
It matches almost everything or does not match anything, and I want to match only sentences, but with the rules strictly defined in the previous post.
Either one expression does not work, and the other works, but wrong. So that's it, and it's bad.
Edited 3 time(s). Last edit at 2019-05-01 08:38 by maki.
Posted by: pspad | Date: 2019-05-01 08:46 | IP: IP Logged
You can test your expression, ask somewhere else for help.
Your luck was you edited your rude post before me. You know what post i mean...
Posted by: maki | Date: 2019-05-01 09:02 | IP: IP Logged
pspad:Your luck was you edited your rude post before me. You know what post i mean...
Well, it's not difficult to guess :D
Posted by: Andreas | Date: 2019-05-02 15:10 | IP: IP Logged
Jan, should we use the ECMAScript (JavaScript) regex engine on regex101.com to come closest to the build in engine in pspad? Or one of the others?
Posted by: pspad | Date: 2019-05-02 18:30 | IP: IP Logged
I am not sure. It's deeply integrated in the editor engine.
I have to look first how is it implemented, the second look must be port to Object pascal od any other regexp engine
Posted by: pspad | Date: 2019-05-02 18:34 | IP: IP Logged
Just not this library is used:
www.regular-expressions.info
As I understand, it's implementation of Perl regular expressions
Posted by: maki | Date: 2019-05-04 10:49 | IP: IP Logged
If I add a pattern for sentences and a pattern to exclude links, then instead of normal sentences I also catch links - because they contain dots and other characters, and what to do?
Posted by: pspad | Date: 2019-05-05 06:44 | IP: IP Logged
You need 2 steps
1 get text without html tags
2 calculate sentences
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