I am using preg_match to match a expression.
"hello_123" or " hello_123 " (valid expression. the text inside double quotes also can be a utf8 character)
" "hello_123" " or ""hello_123"" (not valid)
" hello_123 " (not valid there should be no tabs within the double quotes)
the pattern that I wrote is given below.
(\"([^\t]\s?[^\"]([a-zA-Z0-9])[^\t]\s?|[^\t]\s?(\X)\s?|([\s])+)\") but this seems not to work. Cpuld someone please help me out.
Thanks in advance.