Find extra space / new line after a closing ?> (php tag)

后端 未结 9 1691
醉话见心
醉话见心 2020-12-17 18:04

So I have a space/new line after a closing ?> (php tag) that is breaking my application.

How can I find it easily I have 1000 of files and 100000 lin

9条回答
  •  庸人自扰
    2020-12-17 18:46

    This works for me...

    <\?php | \?>
    

    If you need to use in in a sublime-settings file or something like that which doesn't like forward slashes, you might have to add an extra slash for each of them like so...

    <\\?php | \\?>

    Hope that helps!

提交回复
热议问题