Skip to content

Instantly share code, notes, and snippets.

@xcobar

xcobar/data.txt Secret

Last active September 30, 2019 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcobar/a515559c3ae181e1db1e175f1718ba73 to your computer and use it in GitHub Desktop.
Save xcobar/a515559c3ae181e1db1e175f1718ba73 to your computer and use it in GitHub Desktop.
Jameson Whiskey
Kirchenstraße 3, 5000 Buchholz
Michael Cors
Bendestorfer Straße 5, 20000 Buchholz
James Bonde
Kirchenstraße 11, 40000 Buchholz
Tel.: 04181/5632
Fax: 041815631
E-Mail: info@email.de
Website: www.mysite.de
- name: Jameson Whiskey
address: Kirchenstraße 3, 5000 Buchholz
tel:
fax:
email:
website:
- name: Michael Cors
address: Bendestorfer Straße 5, 20000 Buchholz
tel:
fax:
email:
website:
- name: James Bonde
address: Kirchenstraße 11, 40000 Buchholz
tel: 04181/5632
fax: 041815631
email: info@email.de
website: www.mysite.de
@xcobar
Copy link
Author

xcobar commented Sep 30, 2019

When I ran it on the above data this is the output:

---
- name: Jameson Whiskey
  address: Kirchenstraße 3, 5000 Buchholz
  tel: 
  fax: 
  email: 
  website: 
- name: Michael Cors
  address: Bendestorfer Straße 5, 20000 Buchholz
  tel: 
  fax: 
  email: 
  website: 
- name: James Bonde
  address: Kirchenstraße 11, 40000 Buchholz
  tel: 'Tel.: 04181/5632'
  fax: 'Fax: 041815631'
  email: 'E-Mail: info@email.de'
  website: 'Website: www.mysite.de'

How do I get rid of the Tel.: in the value for tel and email?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment