Generate .vcf cards from a record

Hi, anyone knows how can I make Knack create a contact card (.vcf) from a record? We have a contact base in an app and we'd like to have users be able to export contacts to their mobile phone. I think that would be useful for a number of apps.

You might be able use regex as I have done in this example

Here is a link to the format spec


I saved this for example as test .vcf and it imported fine

fn;charset=utf-8:John Maguire
tel;charset=utf-8;type=cell:+353 87 123 456