I have words to match using only a single pattern. The criteria are one of the following:
it contains a number or an underscore at the first letter, OR
at least one special character (excluding underscore) within the word:
Should match
3testData
3test_Data
_testData
_test3Data
%data%
test%BIN%data
te$t&$#@daTa
Should NOT match
test_Data3
So far, I have managed to match some of them through:
[\p{^Alpha}]\S+
Except for the words where special characters are inside the word
3testData
3test_Data
_testData
_test3Data
%data%
test%BIN%data
test%BIN%data
te$t&$#@daTa