Modify

Opened 12 years ago

Last modified 2 years ago

#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@…>, 11 years ago

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 J-Paul Mesnage, 5 years ago

Owner: set to J-Paul Mesnage
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 J-Paul Mesnage, 2 years ago

Owner: changed from J-Paul Mesnage 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.