views:

60

answers:

2

Hi all,

[dbo].[Regex]('^[-a-zA-Z0-9,&''.@#/:;]+$',@ClaimantMailingAddressLine1)

above is my regular expression when i am passing '(' or ')'brackets symbol it is nt returnig error...

please hw 2 do this....

and please teach me how to eliminate perticular character is a invalid thing. rite now wt ever symbol is present in brackets i.e [ ] its a valid so similarly how to eliminate the pericular words or letters.

Thanks in Advance.........

Please advise

A: 

I can't tell what you're doing, but you can match everything except what's in the brackets of a regular expression by using [^abc] where abc are the characters you do not want to match.

Jonathon
'^[-a-zA-Z0-9,]+$' this is my actual regular expression....My problem is, when i am giving input to this regex with brackets(symbol '(',')') it is not returning Error Code.
VinnaKanna
+1  A: 
Verhagen