Pattern Matching in Adaptor not working as expected
Hi,
In one adaptor, we are trying to match certain pattern. But, the result is not same as any other Perl Pattern matching.
Snippet frpm step logs:
Line matched pattern '(.*)@@(.*)$
Params: ''test3/.','/main/4/Baseline','test','2.txt/main/1''.
I was expecting the output to be:
$1 = test3/.
$2 = /main/4/Baseline test 2.txt/main/1
But. instead I am getting something like this:
$1 = test3/.
$2 = /main/4/Baseline
$3 = test
$4 = 2.txt/main/1
It is splitting the results because of "space".
Is there any way if I can get the entire line itself, that would also solve my problem. Also, is there any variable which contains the matched line?
Thanks,
Ankit
In one adaptor, we are trying to match certain pattern. But, the result is not same as any other Perl Pattern matching.
Snippet frpm step logs:
Line matched pattern '(.*)@@(.*)$
Params: ''test3/.','/main/4/Baseline','test','2.txt/main/1''.
I was expecting the output to be:
$1 = test3/.
$2 = /main/4/Baseline test 2.txt/main/1
But. instead I am getting something like this:
$1 = test3/.
$2 = /main/4/Baseline
$3 = test
$4 = 2.txt/main/1
It is splitting the results because of "space".
Is there any way if I can get the entire line itself, that would also solve my problem. Also, is there any variable which contains the matched line?
Thanks,
Ankit