Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Extract values from a file (https://www.kinook.com/Forum/showthread.php?t=5401)

iboulder 01-19-2016 02:56 PM

Extract values from a file
 
Hi,

Pardon if this has been answered, but my search of the forums didn't return an exact answer.

I would like to extract all occurrences of a string matching a regex as follows:

Regex: BUGID-+?\d{2,10}

Sample Text File: SVN.log

JiraID:BUGID-2580BUGID-2580
BUGID-2582:
JiraID: BUGID-2581-

--------------------
BUGID-9843


The page http://regexr.com/ with the above regex and sample data parses the data correctly. It returns 2 instances of BUGID-2580, BUGID-2582, BUGID-2581, and BUGID-9843.

How do I extract all the BUGIDs (and the number) from my file so I can process each ID? The output can be an array or text file.

Thanks,
S Mckeown

kinook 01-19-2016 07:16 PM

1 Attachment(s)
See the attached sample and log.


All times are GMT -5. The time now is 05:58 AM.


Copyright © 1999-2023 Kinook Software, Inc.