Hi all, I am needing some assistance with a snippet that I have been using for some time now to automate online form filling. It currently operates by copying a policy expiry date (D/MM/YYYY format) to clipboard then filling an online form as follows:
{import: /regex_pol_type} Policy Due for Renewal {clipboard: trim=right}
{key: tab; trim=yes}
{key: q; trim=yes}{key: downarrow; trim=yes}
{key: tab; trim=yes}
{note: trim=yes}{formtext: name=date; default={clipboard}; trim=right}{endnote: trim=yes}{time: DD/MM/YYYY; shift=-3W; trim=yes; pattern=D/MM/YYYY; at={=date}}
{repeat: 7; trim=yes} {key: tab; trim=yes} {endrepeat: trim=yes}
$ fee on rnl
{cursor: trim=no} rnl - $
{wait: delay=+2s; trim=yes}
{repeat: 2; trim=yes}{key: tab; trim=yes}{endrepeat: trim=yes}
{key: downarrow; trim=yes}{key: downarrow; trim=yes}{key: downarrow; trim=yes}
{repeat: 2; trim=yes}{key: tab; trim=yes}{endrepeat: trim=yes}
{import: /name}
{repeat: 3; trim=yes}{key: tab; trim=yes}{endrepeat: trim=yes}
{key: enter; trim=yes}
I have created a new snippet recently to extract the expiry date of the policy using regex from the same CSS selector as /regex_pol_type, labelled /regex_exp_date. An example of what this looks like is bolded below.
"Commercial Motor - 16/02/2024 to 16/02/2025"
It does not grab blank space from either side so the result would be 16/02/2025.
Ultimately I want to replace the clipboard function with the /regex_exp_date snippet however it is not recognising both within the same snippet. They both work with no issues independently but when combined the regex_exp_date errors out.
Thanks in advance!