Inbound Action Regex for multiple line variable

mooreka777
Giga Contributor

Hello There SN Gurus!

I have a variable that spans multiple lines and I am trying to find an easy way to create a variable from the data. Basically I want to see if there is a way to capture everything from ^" to "$ using regex.

 

Example:

LONGDESC="asdf

asdf

asdf

asdf

asdf"

 

Here is some sample code that I found, but it isn't doing what I want

Example:

desc = parseVar[i].split('LONGDESC=')[1].toString().replace(/^\"|^\"|\"$/g, '');

 

Thanks for the help and guidance!

Kindly,

Kelly

 

1 ACCEPTED SOLUTION

Actually maybe try +11 to cater for the " mark!

View solution in original post

11 REPLIES 11

Actually maybe try +11 to cater for the " mark!

Thank you!

That worked perfectly.

Kindly,

Kelly