The file contains the following lines. I would like to extract some data from this file.
Number of current user assembly lists: 23
- 'RevisionBuild' Execution time (in minutes) = 8.40
[Build] RC = 0
I used the following regex to extract the value 23 from this file
<ac:for param="line" list="${logFileContent}" delimiter="${line.separator}"> <sequential> <propertyregex property="noOfBuildlists" input="@{line}" regexp="(.*)Number of current user build lists: (.*)$" select="\2"/> </sequential> </ac:for>
But the same regex gets no value when I try to extract other lines, such as regexp = "(.) [RevBuild] RC = (.) $" Or regexp = "(.) 'RevisionBuild' Runtime ( in minutes) = (.) $ ", where the extracted values should be 0 and 8.40 respectively.
Can anybody help? Thanks, Aarthi
source share