3

I have an XML file in which I have multiple lines of Value="(random characters/numbers/symbols)" for example Value="fREFG$£$RF43wfr£$32" of varying string lengths. I am wanting to sanitise this and replace it just with Value=""

How would I do this with regex

I got as far as..... find: Value=\"([0-9]*)\"

however that doesn't cover characters/symbols

0

1 Answer 1

2

I used the following test data:

Value="fREFG$£$RF43wfr£$32" 
Value="fREFGdasdee$$$££♫_+_+ïSAD_+ASDF43wfr£$32" 

Using Value="[^"]*" with Notepad++'s find search mode set to Regular expression works. This can also be used in find and replace.

[^"]* Can be put between any known containing characters in your document, in this particular case it was " ".

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .