I wonder if someone can help me with the following?
I'm trying to do a find and replace to update some encoded characters but I can't seem to get it to work so I suspect I'd doing something wrong (but don't know what )
\< matches at the beginning of a word, defined as the empty string between a non-word character (or beginning of the line) and a word character. \> matches at the end of a word, defined as the empty string between a word character and a non-word character (or end of the line).
& is not a word character, so \< cannot match in front of it. ; is not a word character, so \> cannot match behind it.
(\< and \> appear to be a little buggy, but that's another matter.)
No, you can leave them in if you like. But they won't have any effect, unless you include the whole expression within a larger regex, as you did in your original version, in which case they act to restrict the extent of the alternation within them. But they won't do any harm either, as they don't capture any subexpressions.
Character Encoding: windows-1252
Root folder: C:\inetpub\wwwroot\myfolder\xml
File Filter: myfile.xml
Regular Expression: true
Replacement Format: true
Match Case: false
Match Words: false
Search Subfolders: false
}
C:/inetpub/wwwroot/myfolder/xml/myfile.xml: 0 replacements made
Number of files searched: 1
Number of files modified: 0
Total changes made: 0
It's quite a big file and so I've reduced it to just 3 examples which hopefully should provide enough info?
I've tried adding it to this post, but the forum converts the encoding and so you may not get the same results - as a result, I've put a copy of the file up here (http://www.discoveryvillas.co.uk/temp.txt) temporarily so that you can take a look (I've saved it as a .txt file for the time being, but the file itself is normally .xml) - I've also had to remove the