Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
brett.pladna@hp Respected Contributor.
Respected Contributor.

regex repeating string in a Flex Connector

Does anyone know the regex syntax for parsing out a string into a token if there is repetition?  I don't know how to word it but an example would be:

y,A=B, x

y,A=B,A=B, x

y,A=B,A=B,A=B, x

I want to know how to account for all the A=B and put into a field.

Thank you,


Labels (2)
1 Reply
Acclaimed Contributor.. lless Acclaimed Contributor..
Acclaimed Contributor..

Re: regex repeating string in a Flex Connector

This is not the right solution. You will not know how many tokens to use. You need to select a substring from a string of the form: a = b, c = f, t = t and use keyvalue:




try this regexpr


for extract substring a=b,c=f,t=t .

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.