Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (http://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Regex and Read File step (http://www.kinook.com/Forum/showthread.php?t=5225)

modernrocketry 01-10-2014 06:39 PM

Regex and Read File step
 
I'm trying to use regex in a Read File Step. I'm looking for a substring match. However I cannot get VBP to return a positive results regardless of how vague the regex.

Is there a problem using regex in 8.4 ( or more likely... what am I doing wrong?)

Using VBP 8.4

Here are the steps to see my issue:



4
There were 614 instances of students getting 90.0%% or above.
The FCC had to censor the network for saying &#$*@!]]>

0
1
Log Message


-1
ASCII
-1
\w
1
-1
-1
%LASTSTEP_OUTPUT%
0
1
Read Output of Last Step and regex something

kinook 01-10-2014 11:24 PM

Define a group capture for the expression: (\w)

Or uncheck Include all matches and use something like \w*

Shiamak 03-17-2014 05:52 PM

Quote:

Originally Posted by kinook (Post 20587)
Define a group capture for the expression: (\w)

Or uncheck Include all matches and use something like \w*

Above works great however using VBP's regular expressions how do you parse one or two or three digits from either a string or a file?

(/d/d) works only for two digits.

kinook 03-17-2014 06:07 PM

\d+ or \d{2,3}
http://www.regular-expressions.info/repeat.html

Shiamak 03-17-2014 06:14 PM

Quote:

Originally Posted by kinook (Post 20720)

Thanks.. I figured out ^(\d+).


All times are GMT -5. The time now is 09:58 PM.


Copyright 1999-2019 Kinook Software, Inc.