Regex to find content not in quotes

后端 未结 3 1412
再見小時候
再見小時候 2021-01-18 08:31

I\'m trying to find parameters outside quotes (Single ou Double)

$sql = \"
INSERT INTO Notifify (to_email, msg, date_log, from_email, ip_from)
VALUES
    (
          


        
3条回答
  •  無奈伤痛
    2021-01-18 09:11

    You can use a negative look-behind. This way you will match exactly what's needed.

    preg_match_all('/(?

    Demo

提交回复
热议问题