Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 08 '12, 10:22 a.m.

Question was seen: 5,335 times

Last updated: May 08 '12, 10:22 a.m.

Confirmation Cancel Confirm