[問題] 文章換行與空白行抓取問題

作者: sky91302018 (sky)   2022-03-18 21:21:09
Regex規則:「(.*)」
文章:
「Hello World」
「 test
test
test」
regex101:
https://regex101.com/r/pAC4Vz/1
我想要抓取的是文章中「」的內文,不過內文有換行與空白行,導致我抓取不成功,
想請問版上各位是否有方法能夠指導一下呢,謝謝
作者: microloft (微閣)   2022-03-18 23:37:00
「([^」]*)」用 single line flag (s) 也能讓 . match 換行
作者: skybrest (Be Still My Heart)   2022-06-27 21:24:00

Links booklink

Contact Us: admin [ a t ] ucptt.com