You are here: PSPad forum > English discussion forum > PSPad Syntax Error "Date Regex"

PSPad Syntax Error "Date Regex"

Goto Page: Previous1 2 3 Next

#11 Re: PSPad Syntax Error "Date Regex"

Posted by: pspad | Date: 2020-01-29 18:37 | IP: IP Logged

Can you show me your regular expression?

Options: Reply | Quote | Up ^


#12 Re: PSPad Syntax Error "Date Regex"

Posted by: maki | Date: 2020-01-29 19:00 | IP: IP Logged

PSPad not support .NET Regular Expressions?

What engine does it use?

Options: Reply | Quote | Up ^


#13 Re: PSPad Syntax Error "Date Regex"

Posted by: pspad | Date: 2020-01-29 19:27 | IP: IP Logged

PSPad uses Perl syntax.

But it's no problem to implement another library what will support your expressions.
Tested for Search/Replace and it works, include date validation:

^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$

Edited 2 time(s). Last edit at 2020-01-29 21:22 by pspad.

Options: Reply | Quote | Up ^


#14 Re: PSPad Syntax Error "Date Regex"

Posted by: maki | Date: 2020-01-29 22:18 | IP: IP Logged

Your regex not work PSPad.

can start learning...
But here's the date in a different format:

XXXX-XX-XXX
www.oreilly.com

image

Edited 1 time(s). Last edit at 2020-01-29 22:21 by maki.

Options: Reply | Quote | Up ^


#15 Re: PSPad Syntax Error "Date Regex"

Posted by: pspad | Date: 2020-01-29 22:27 | IP: IP Logged

There is big problem, cause you don't read.

Quote:
But it's no problem to implement another library what will support your expressions.
Tested for Search/Replace and it works, include date validation

It means I implemented new regular expression library (PCRE instead of PERL) and this library supports regular expression like yours.
You must wait, cause I need to make modification in whole PSPad.

Options: Reply | Quote | Up ^


#16 Re: PSPad Syntax Error "Date Regex"

Posted by: maki | Date: 2020-01-30 11:20 | IP: IP Logged

You can add new functions, or allows you to quickly select operations - 1 click, without having to enter all the time regex.

HTML Anchor tag

<a\s+(?:(?:\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?\s*href\s*=\s*(?<url>\w+|"[^"]*"|'[^']*')(?:(?:\s+\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?>.+?</a>

Match:

<a href="/feed?section=search&q=%23%D0%91%D0%9F_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D0%B0">#БП_Украина</a>

image

Edited 1 time(s). Last edit at 2020-01-30 11:21 by maki.

Options: Reply | Quote | Up ^


#17 Re: PSPad Syntax Error "Date Regex"

Posted by: pspad | Date: 2020-01-30 11:29 | IP: IP Logged

maki:
You can add new functions, or allows you to quickly select operations - 1 click, without having to enter all the time regex.

I am afraid I don't understand

Options: Reply | Quote | Up ^


#18 Re: PSPad Syntax Error "Date Regex"

Posted by: maki | Date: 2020-01-30 11:35 | IP: IP Logged

In the Find section, optional user search selection

Options: Reply | Quote | Up ^


#19 Re: PSPad Syntax Error "Date Regex"

Posted by: maki | Date: 2020-01-30 11:43 | IP: IP Logged

I have sample regular expressions ready and quickly want to choose a search?
It makes no sense to copy from thousands of ready-made regular expressions for everyone. It has to be improved somehow!

Options: Reply | Quote | Up ^


#20 Re: PSPad Syntax Error "Date Regex"

Posted by: maki | Date: 2020-01-30 11:51 | IP: IP Logged

Example:

Find -> Ready-Made Regex -> URL Image

(http\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?(?:[a-zA-Z0-9_])+\.(?:jpg|jpeg|gif|png))

akademiaszczescia.com/wp-content/uploads/2017/05/diagram-1010x1024.png

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 Next





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