(?s)(subdialogJsp|jsFunction) id=\"(?<dbstate>[\w]+_DB)\"[^<]*?(<result returned|result).*?(statusCode|H_returnCode|responseHttpStatus|H_PendingRatePlan|[\w][a-gA-G][i-qI-Q][t-zT-Z]\s)(:|=)(?<H_returnCode>.*?)(,|\}\))' I have the above regular expression looking for a certain db state and return a H_returnCode based on the matches in result_returned or result. One of the H_returnCode i get is "4992" . In this return code i want to eliminate the & and everything that comes after it How do i do that?
... View more