fix issue 11839
add _ to allowed characters in regex identifier
Merge pull request #1838 from blackwhale/issue-11839

Fix issue 11839