Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 01-19-2016, 02:56 PM
iboulder iboulder is online now
Registered User
Join Date: 05-26-2011
Posts: 2
Extract values from a file


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-2581-
<blank line>

The page 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.

S Mckeown
Reply With Quote
Old 01-19-2016, 07:16 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 6,033
See the attached sample and log.
Attached Files
File Type: zip (1.2 KB, 1733 views)
Reply With Quote


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

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

Copyright 1999-2023 Kinook Software, Inc.