has Name Matching
Name of the declaration matching regex.
Return
true if the declaration's name matching with the regex, false otherwise.
Parameters
regex
The regex to check against. It is a non-null string representing the desired regex.