I'm looking for a way (preferably using c++) to search through a large text-document, and isolate patterns of text (like e-mail or phone numbers or whatever) then print the result to a new and hopefully more clean and systematic text-document.
for example, say I have the following in my original text document: