-1

I'm strugglig with regex. I need to find regex for pregmatch. If the string contains "\n" and not "\c\n", do something.

I do have a sentence "Thank you for tuning in to I-See News.\nJames Movesworth reporting.Today, let’s learn about\nQuick Attack." I tried something, but it's not working at all.

preg_match('/?!(\c)(\n)/', $string);

Thank you!

chudst
  • 139
  • 2
  • 12

0 Answers0