Regex extract sequence of a certain format from string
I think this is possible, but it's beyond my ability with regex.
What I want is to extract a certain pattern from a string.
So if the pattern is "any number" then I want to extract it from any string:
'this is a string123 test'
That returns '123'.
The specific pattern I am matching is a 10-digit hexadecimal code.
This means: exactly 10 characters, each of which is 0-9a-f.
I would like the function to take a string as input and return an array containing all possible matches.
Let me know if that isn't clear.