[英]Issue with regex - Content-Disposition multiline
I have 我有
^Content-Disposition: form-data; name=\"(.+)\"[\r\n]+(.+?).\s
and i want to get out to match groups, name and content from the text: 我想出去匹配文本中的组,名称和内容:
--xYzZY
Content-Disposition: form-data; name="text"
131 æøå
Kjetil Ormestad Eid
Webutvikler
http://www.hafslund.no
Skype: kjetileid
Mobil: 99 26 62 15
--xYzZY
like name = text and content: 131 æøå ..... 26 62 15 如名称=文字和内容:131æøå..... 26 62 15
I have tried: https://regex101.com/r/mX51ru/29 我已经尝试过: https : //regex101.com/r/mX51ru/29
but its only able to get som text from the multiline match 但它只能从多行匹配中获取文本
You may try using the following regex ... 您可以尝试使用以下正则表达式 ...
(?s)Content-Disposition:\sform-data;\sname="(.*?)"(.*?)--xYzZY
see regex demo 参见正则表达式演示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.