Hi,
Does anybody know how to code a regular expression (for use with some grep like tool) which will search for the word 'vat' but exclude the word 'pri**vat**e'. I've taken over a project which has hundreds of references to VAT (some hard-coded, some not) and as the VAT rate in the UK is changing on January 1 I need to update the project source files with the correct rate. At the moment when I do a global search for the word 'vat' in Visual Studio it also returns lines which contain a private void definition.
In addition to this I need to search for '15' (the current vat rate) but I would like to exclude any lines that have any number before or after the '15'. For example, 0.15 or 15 or 15% would be true, 015 or 150 or 15a would be false.
As you can imagine this is no trivial task to do manually so any help would be much appreciated.
Thanks,
Tim