Find everything between two XML tags with RegEx

前端 未结 5 1395
无人及你
无人及你 2020-11-27 13:02

In RegEx, I want to find the tag and everything between two XML tags, like the following:


    

        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 13:45

    It is not good to use this method but if you really want to split it with regex

    ((.|\n)*?)<\/primaryAddress>
    

    the verified answer returns the tags but this just return the value between tags.

提交回复
热议问题