My dataset contains numeric values, alphanumeric values, and non-numeric values. How can I filter data which contains numeric values? Below is an example showing a list of data and filtered data which I want.

enter image description here

  • Is the criteria for matching as simple as, "if a text field contains at least 1 number character then return the whole field?"
    – bixb0012
    Mar 30 at 13:58

1 Answer 1


Use the following expression with function regexp_match(). The Regular Expression \\d finds any digit. Use double backslashes, because in QGIS,

Backslash characters must be double escaped

regexp_match ("Data",('\\d'))

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.