Highlighted
686 views

how to use dynamic value in lr_save_param_regexp

I need to pass a dynamic value in lr_save_param_regexp in webSocketCB.c file

Below is the string -

        lr_save_param_regexp (data,
                              length,
                              "RegExp=<buttonNumber>1</buttonNumber><lineStatus>(.+?)</lineStatus>",
                              "ResultParam=linestatus1user1",
                              LAST );

Value '1' needs to be parameterized. When I am trying to use parameterization here, it is not picking up the value. Please suggest how to perform this?

 

Tags (1)
0 Likes
2 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: how to use dynamic value in lr_save_param_regexp

Hi,

According to regexp spec you need to escape the / character with a \

Thanks,

Boris.

 

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: how to use dynamic value in lr_save_param_regexp

Hello Vaishali,

Exactly, try to escape the > with \ and / character with a \, now you can parameterize the 1 value.

Regards,

Manoj Thota

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.