[dbo].Regex
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-zA-Z0-9,&''.@#/:;]+$'^means start of string.[]matches the characters allowed (in the string).+mean at least one such character is expected.$means, string end (so no other characters are allowed to follow).To create a regular expression that is the inverse, there would be a
^as first character between the[].[^()_]Any character except(,)or_Warning: It can be that the curly brackets need escapes, similar as the above original regular expression showed with the
'.Have a look at this quick start, to get a good start on regular expressions.
Also the O’Reilly book Mastering Regular Expressions is one of the references I would advise to read.
And on WikiPedia also good background on Regular Expressions can be found.