Modify

Opened 10 years ago

Last modified 5 weeks 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 Changed 9 years ago by MrCreatoR <mscreator@…>

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 Changed 4 years ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

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 Changed 5 weeks ago by Jpm

  • Owner changed from Jpm to Jon

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.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.