Regex to find content not in quotes

后端 未结 3 1384
再見小時候
再見小時候 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:22

    What about this:

    /\s+:[A-Za-z0-9_]*/
    

    It's not very rigorous and might fail for more complex examples like like tennis scores (15 : 30) but is probably good enough for your needs.

提交回复
热议问题