Lucas Bürgy's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
REGEX: Get name and phone number in a vcf file /shaare/AzZShQ
Sun Jan 19 11:01:55 2020
QRCode

First mobile phone number (in Switzerland, number that begins with "+41 7") :

BEGIN:VCARD(.|\n)*?FN:(.*)?\n(.|\n)*?(TEL.*?:(\+41 7.*?)\n(.|\n)*?)?END:VCARD
$2;$5

Or first phone number :

BEGIN:VCARD(.|\n)*?FN:(.*)?\n(.|\n)*?(TEL.*?:(.*?)\n(.|\n)*?)?END:VCARD
$2;$5

This is the output :

John smith;+41 79 777 77 77
my name;my phone number

They may still be some escape character, you can remove them with this :

\\(.)
$1

If you want to remove those who don't have a phone number :

.*?;\n
regex vcf
1244 links, including 4 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn