Modify

#2628 assigned Feature Request

Add mode to StringRegExp

Reported by: asdf8 Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I propose add an additional mode to function StringRegExp - to allow for cases where the function returns an array (flag = 1, 2 or 3) can be obtained at the output of the function two-dimensional array, the second column which contains the position of the found text to the original string.

Attachments (0)

Change History (3)

comment:1 by MrCreatoR <mscreator@…>, on Feb 25, 2015 at 10:09:44 PM

Very good idea, or at least set @extended for flag 3, then we could calculate the position of each match in a loop (with StringLen).

comment:2 by Jpm, on Oct 12, 2020 at 3:59:27 PM

Owner: set to Jpm
Status: newassigned

Hi,
Flag = 1 and 2 already return the offset after the capture group
for 3,4 it is better the user can use the return offset in @rxtended and loop with it if needed

that what is done in the propose fix sent to Jon

comment:3 by Jpm, on Mar 17, 2024 at 4:15:39 PM

Owner: changed from Jpm to Jon

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


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