I have an xml containing errors.
Basically, if an occurrence of ‘nan’ appear in a property, it’s replaced by ‘0’.
For example, nancy become 0cy
<user firstname="0cy" lastname="Ferguson" id="01234"></user>
I need to search the document and replace all ‘0’ by ‘nan’, but not in the user id.
I guess the best way to do this would be trough a regex in Dreamweaver, but I don’t know exactly how.
I can search all firstnames with firstname="([\s\S]*?)", but this return all firstnames, not only thoses containing a ‘0’.
Anyone have a clue?
Try
replace with
explain:
for example:
matches
51,03in1851 1999 1950 1905 2003