sandy1028 Posted August 2, 2015 Share Posted August 2, 2015 (edited) Find more business news at facebook.com and twitter.com. Text BUSINESS to 23456 for breaking business news text alerts on your mobile phone. Text JOBS to 23456 for job alerts. Want your news even faster? Text NEWS to 23456 to sign up for breaking news text alerts. See for a complete list of alerts. SIGN UP FOR MOBILE NEWS ALERTS! Get your news on the go, text NEWS to 23456 How to find out the sentence which contains the string "23456" and remove the entire line. Edited August 2, 2015 by sandy1028 Quote Link to comment https://forums.phpfreaks.com/topic/297581-regex-to-remove-entire-line-when-word-is-present/ Share on other sites More sharing options...
requinix Posted August 2, 2015 Share Posted August 2, 2015 Match an entire line and make sure your pattern has "23456" in it. Give it a shot - it isn't particularly tricky. Quote Link to comment https://forums.phpfreaks.com/topic/297581-regex-to-remove-entire-line-when-word-is-present/#findComment-1517885 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.