I have a simple string received via IMAP from an email and containing a var {{ $json["text"] }} which looks like:
...from xxx LTD for x,xxx.xxCURRENCY issued 08/06/2020 and due by 01/07/2021 see...
I’d like to extract given substrings like x,xxx.xxCURRENCY which could be something like 1,000.00€ or 300.00USD and the relative dates preceded by issued ... and due by ....
I started to use something like: {{ $json["text"].match(/by \s*(\d+)/).toString() }} but with not much success, I get stuff like 01,01 for the dates and similar. Any ideas how I could achieve this and is {{ $json["text"].match(<whatever>).toString() }} the best way to do it?