ajay goyal
ajay goyal

Reputation: 1

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">

How to get in MSG in a variable for the uper string:

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

Upvotes: 0

Views: 275

Answers (2)

Imanuel
Imanuel

Reputation: 3667

In this case, for this input (and others similar to it), msg=[^&"]+ will do. Beware, however, that parsing HTML with Regex only works reliably for well defined input.

Upvotes: 3

damisan
damisan

Reputation: 1047

Depending on what characters are allowed in the msg... https://regex101.com/r/W31NOb/1

msg=([^&]+)

Upvotes: 1

Related Questions