c# - regex negation question -


Does anyone know how to codify a regular expression (for the use of some grep like tools) 'VAT' but exclude the word 'P' VAT e. I have occupied a project in which there are hundreds of references to VAT (some hard coded, nothing) and VAT rates in the UK Changing on 1 January, so I need to update project source file at the right rate . For the time being, when I do a global search for the word 'VAT' in Visual Studio, even then the line returns a line which has a private zero definition.

Also, I would like to exclude any line of '15' (search current VAT rate) but I would like to exclude any line before or after '15'. For example, for example, 0.15 or 15 or 15% True, 015 or 150 or 15 A will be false.

As you might imagine, there is no trivial task to do this manually, so any help would be greatly appreciated. / P>

Thanks,

Tim

Using Visual Studio ( As I read that you had already done) you can use it:

For VAT

~ (pri) vat ~ (e) (This' Vate ', so close the bus (e) if desired)

and for 15

[^ 0- 9a-z] 15 [^ 0- 9a-z]

Regular Expression Syntax VS Use and find, not like your standard rigax, is not sure why MS went, but he did it.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -