I have a large amount of text (originally from a text file) and am using strpos() to find small extracts of it. This works fine in most cases however when there is a CRLF before or after (or possibly both) the extract is not found (strpos() returns false).
Any tips or pointers that will help me find a way around this?
trim the crlf off