regular expression to replace an xml attribute

前端 未结 3 433
小蘑菇
小蘑菇 2021-01-14 13:17

I have an xml file of the form:

stuff

There are many propertie

3条回答
  •  终归单人心
    2021-01-14 13:25

    /property name=\"foo\" value=\"([^\"]*)\"/

    Then just replace the first submatch with the new value of your wishing.

提交回复
热议问题