return str_replace('/', '-', $date);
}
],
- 'Internet' => [
- 'imapQuery' => 'FROM "@online.telstra.com"',
- 'regex' => '/Total.*?\$(?<amount>[0-9]+(\.[0-9]{2})?).*?Due Date.*?(?<due>\d{1,2} \w{3} \d{4})/',
- 'messageTransform' => ∘(glue(" "), map('trim'), lines, 'strip_tags', 'html_entity_decode')
- ],
'Gas' => [
'imapQuery' => 'FROM "@energy.agl.com.au"',
'regex' => '/Direct Debit amount: \$(?<amount>[0-9]+(\.[0-9]{2})?).*?Direct Debit date: (?<due>\d{1,2} \w{3} \d+)/',