I'm implementing my own DBCommand like wrapper for our proprietary database through which we can only access via API and by using strings. Boooo
I want to be able to find via Regular Expression my normal parameters and not select the @@IDENTITY field (or anything else like that). I'm then going to replace the parameter name with the real value of that parameter NULL or 'Some Value' etc.
Currently I have
@\w{1,}
Given a string
INSERT INTO MYTABLE(VALUE1, VALUE2) VALUES (@MyValue1, @MyValue2); SELECT @@IDENTITY
I'm matching
@MyValue1
@MyValue2
@IDENTITY
I also tried [^@]@\w{1,} but it matches (@MyValue1 and _@MyValue2 (underscore representing space)
How can I not match @@Identity?