I am trying to filter a table from Access using VBA DAO.Recordset. I want to match patterns like: \w{3}\d{5}
ex: ABC12345
This works fine if I test only in VBA code (in excel) but when I execute the recordset no matches are found. The shorthand character classes \w
,\d
and multiplier part {3}
are ignored
Simple queries like: select * from table where column like '*C123*'" or "'*[C123]*'
, work just fine.
I have found a solution but it is very ugly:
[A-Z][A-Z][A-Z][0-9][0-9][0-9][0-9][0-9]
[A-Z]{3}[0-9]{5}
work? – DiegoLIKE
does not support regex, only wildcards. – Wiktor Stribiżew