Modify ↓
Opened 10 years ago
Closed 4 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
Attachments (0)
Change History (2)
comment:1 Changed 10 years ago by jchd18
comment:2 Changed 4 years ago by jchd18
- Resolution set to Rejected
- Status changed from new to closed
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".
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
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.