What is the efficient way to find some pattern in a big text?
- by salman
I want to extract email addresses from a large text file. what is the best way to do it?
My idea is to find '@' in the text and use "Regex" to find email address into substring at (for example) 256 chars before this position and length of 512.
P.S.: Straightforwardly I want to know the best and most efficient way to find some pattern (like email addresses) in a huge text.