Here I am having one preg
[-0-9a-zA-Z \/_:.,;=\'{0,2}"{0,2}\s]+$
With this I want to check lines whether they contains Alphabets, Numeric and some special character such as - _ , . ; ' " / =. I am getting everything proper but here the issue I faced is with ' & ". Here I want to use this like if quotes are open then it should be closed as well or incase it should not be in use. Either 0 or only 2 times it can be used not more than that.
Example
"hello; max This should not be allowed
"hello; max" This could be allowed if there is no any quotes then also it should allow.
'hello; max' This should be allowed
hello; max This should be allowed