RegExMatch() get all matches
Posted: 21 Mar 2017, 20:18
Don't really understand Regex, help is much appreciated.
I have a large file with thousands of entries that I need to get matches from as fast as possible.
I need to use it in different places in my script, so I need to modify what to look for.
thanks
Here is a test script...
I have a large file with thousands of entries that I need to get matches from as fast as possible.
I need to use it in different places in my script, so I need to modify what to look for.
thanks
Here is a test script...
Code: Select all
Data=
(
<item ID="item 1">
<Label>item 1 Label</Label>
<Price>item 1 price</Price>
</item>
<item ID="item 2">
<Label>item 2 Label</Label>
<Price>item 2 price</Price>
</item>
<item ID="item 3">
<Label>item 3 Label</Label>
<Price>item 3 price</Price>
</item>
)
; This is just an example:
str_start := "<item ID="
str_end := "</item>"
RegExMatch( Data, ...
MsgBox, %allmatches%
ExitApp