Modify

Opened 11 years ago

Closed 6 years ago

#2987 closed Feature Request (Rejected)

support PCRE case escape sequences

Reported by: iCode Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: pcre, case Cc:

Description

apparently the \u \U escapes are not used in the AutoIt version of PCRE unless the running PCRE in JS mode, so...

AHK supports at least some of these and it sure would make case changes a lot easier in certain instances...

\l lowercase next char
\u uppercase next char
\L lowercase until \E
\U uppercase until \E

example:

StringRegExpReplace("this. that", "\. ([a-z])", ". \u1")
; returns: this. That

ref: http://perldoc.perl.org/perlre.html

Attachments (0)

Change History (2)

comment:1 by jchd18, 11 years ago

AutoIt uses a standard copy of PCRE and it's highly unlikely that the devs would want to maintain a modified/enhanced version just to support these Perl escapes.

comment:2 by jchd18, 6 years ago

Resolution: Rejected
Status: newclosed

PCRE still doesn't support these Perlisms, so it's extremely unlikely that AutoIt will ever implement them.

Also please note that the replace part isn't a pattern: only $1, $2, $3, ... (or \1, \2, \3, ...) are recognized there.

Closing as "rejected".

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.