DrandCrunny
New Member
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\[code\]<user firstname="0cy" lastname="Ferguson" id="01234"></user>\[/code\]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 \[code\]firstname="([\s\S]*?)"\[/code\], but this return all firstnames, not only thoses containing a '0'.
Anyone have a clue?
Basically, if an occurrence of 'nan' appear in a property, it's replaced by '0'.
For example, nancy become 0cy\[code\]<user firstname="0cy" lastname="Ferguson" id="01234"></user>\[/code\]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 \[code\]firstname="([\s\S]*?)"\[/code\], but this return all firstnames, not only thoses containing a '0'.
Anyone have a clue?