Help?! Parsing a bank account number

Macbook Pro, mid-2010, SSD, 2-GB RAM, Yosemite.
I have learned a lot from the Noodle forums and Buzz (Brooks Duncan, Sparky, and http://technosavvy.org/2012/09/07/automated-bank-statement-filing-with-hazel/).
However, I can't do the following: My account number appears as follows; (numbers have been changed, but they appear in the order as shown.)
Account Number: 000007063008029
I'd like to extract the last four digits and include them in the filename, thusly: 2014-11-05 ejg-Chase-8029.pdf.
Thanks to Sparky I have the date piece working. I could hard-code the 8029, but we have multiple accounts with the same format, so I'd like to match the account number, then parse it to capture the last four digits.
I've tried a variety of strategies, but none seem to be working yet.
TIA. I hope this request makes some sense, and the results are useful to other newbies as well.
I have learned a lot from the Noodle forums and Buzz (Brooks Duncan, Sparky, and http://technosavvy.org/2012/09/07/automated-bank-statement-filing-with-hazel/).
However, I can't do the following: My account number appears as follows; (numbers have been changed, but they appear in the order as shown.)
Account Number: 000007063008029
I'd like to extract the last four digits and include them in the filename, thusly: 2014-11-05 ejg-Chase-8029.pdf.
Thanks to Sparky I have the date piece working. I could hard-code the 8029, but we have multiple accounts with the same format, so I'd like to match the account number, then parse it to capture the last four digits.
I've tried a variety of strategies, but none seem to be working yet.
- I can do a match for number using the [123] token, followed by '8029', but since there is no separator within the account number this does not seem right.
- I tried restricting the action to include 'at least 4 digits', but this doesn't allow me to include only 4 digits.
- Would it make any sense to enter the single digit token 11 times as a prefix to the final four? -- I can't quite wrap my head around this one.
- Or, do I need to resort to some external code to parse this out? And if so, where would be a good place to start?
TIA. I hope this request makes some sense, and the results are useful to other newbies as well.