David, This would be a pretty simple Groovy script to write (maybe 2-3 lines). Have you tried ExecuteScript?
Andy LoPresto [email protected] [email protected] He/Him PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > On May 25, 2020, at 3:51 AM, DAVID SMITH <[email protected]> > wrote: > > Good morning devs > I have a flowfile which contains a space separated log file, within this file > is a section such as:- > FileSelectors:[{fileselector:<filename>},{fileselector:<filename>},{fileselector:<filename>}] > I would like to create an attribute which is the count the number of > occurrences of the word fileselector and ideally another attribute which is > the filenames in one list, although this one is just a nice to have. I have > made the whole phrase an attribute and then tried various things in the > expression language but nothing seems to work.Can anyone help please ? > Many thanks Dave
