Honored Contributor.. Honored Contributor..
Honored Contributor..

Scriptlet filter

Hi Everyone


I am reading context from CSV file and the output is (String,Integer,String,Integer,Integer. etc...), I want create a scriptlet filter to match the 3rd value, the scriptlet filter starts something like this 

FIL = ScriptletInput.math((\w+,\d+),(\w+))

ScriptletResult = FIL[2]

Can any one help me to bulit the correct scriptlet filter please.



1 Reply
Respected Contributor.
Respected Contributor.

I'm not sure I completely understand what you are trying to accomplish.  Perhaps some context would help.  If you are just trying to get a specific column/row from the CSV then there are other ways available, such as using the "Table" filter.

Also, I'm assuming there are some typos in your post and it's actually supposed to be:

FIL = scriptletInput.match((\w+,\d+),(\w))

I say that because I believe 'scriptletInput' should be a String so .math would be invalid.

-Scott Eppler · Cloud Engineer · Coda Global
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.