You are here: PSPad forum > English discussion forum > Re: Error Regex

Re: Error Regex

#1 Error Regex

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

An attempt to repeat something that can not be repeated in the regular expression
Include char:
.
!
?

(\.|!|?)

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

Options: Reply | Quote | Up ^


#2 Re: Error Regex

Posted by: vbr | Date: 2019-04-30 18:15 | IP: IP Logged

maki:
An attempt to repeat something that can not be repeated in the regular expression
Include char:
.
!
?

(\.|!|?)

You need to escape the regex metacharacters, if they should be matched literally
most likely, you need
\?
instead of ?
in the above pattern.
note, that alternation of single characters is the same as character set, i.e. [.!?]

hth,
vbr

Edited 1 time(s). Last edit at 2019-04-30 18:17 by vbr.

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