Link to home
Start Free TrialLog in
Avatar of interclubs
interclubs

asked on

PHP Regular Expression Help. Delete lines with nothing but spaces.

I'm looking for a regex to delete lines that only have spaces  or tabs on them, and NOT delete all line feeds. So a line with just a  \n or \r would stay, but spaces\tabs and a \n or \r would be deleted
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Please post your test data set, thanks.
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial