How to match a newline \n in a perl regex?

后端 未结 3 1144
太阳男子
太阳男子 2021-01-12 04:34

I want to match this line,

\'\'\'No Change Alarms Help & Information
3条回答
  •  耶瑟儿~
    2021-01-12 05:18

    In some cases it might not work because of how perl "slurps" the input. Passing -0777 as a parameter will make it consider multiple lines. (Pass it along with your other parameters, e.g. perl -0777pi -e)

提交回复
热议问题