简体   繁体   中英

How to get regular expression for the msg=“ ”

<form id="lrMemberDashboard" action="/cboss/preRegistrationWorkflow/viewLRMemberDashboard?msg=Task%20has%20been%20successfully%20Accepted&amp;isRejected=false" method="get" enctype="multipart/form-data">

如何在上层字符串的变量中获取MSG:

msg=Task%20has%20been%20successfully%20Accepted

在这种情况下,对于此输入(以及与之类似的其他输入), msg=[^&"]+会起作用。但是请注意,使用Regex解析HTML仅对定义良好的输入可靠地起作用。

取决于消息中允许使用的字符... https://regex101.com/r/W31NOb/1

msg=([^&]+)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM