Hello, world How to use the regular all & lt; Span> Replace & lt; Input type='text' & gt;
CodePudding user response:
STR="& lt; Span> Hello, world Hello, world_2 & lt;/span> Hello, world_3 & lt;/span>"
Set the RegEx=New RegExp
The RegEx. Global=True
The RegEx. IgnoreCase=True
The RegEx. The Pattern="& lt; Span> ([^ & lt;] +? <\/span>" '" [a-z] (\ d +) [a-z] {3} "
STR=regex. Replace (STR, "& lt; Input type=hidden value='https://bbs.csdn.net/topics/$1' & gt;" )
Set the RegEx=Nothing
Response. Write the STR
CodePudding user response: