regex - Regular expression to match again plain text -


I would like to remove the text from this string

  Name: Franco Doneese Phone: 01234567890 Email: Franco@franco.com Date of arrival: 16/12/2014 Departure date: 28/12/2014 Guests: 2 adults, 0 children Further information: This is the text that I want to match. There may be any part of plain text spread over many years, I would like to remove 'Franco Donji', '0123457890', 'Franco @ Fanco.com, etc., etc.  

I am always able to extract Reg-ex against HTML or using simple-html-dom to match up to the next colon and then the words related to the matching string (such as the phone) There is a hacking method to remove it, but Ace What is the better way?

Thanks

View this:

  Name: \ s * (. *?)  

We match first name: literally, 0 + white space character ( \ s * ). Then we have 0+ characters ( (. *?) ).


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -