I want to find “codes” in a text, these codes can contain letters and numbers and could have a different length. A text could look like this:
This is a example text, it contains different codes like this one 8de96217e0fd4c61a8aa7e70b3eb68 or that one a7ac356448437db693b5ed6125348.
How can I find and echo them in the correct order (from the first to the last one).
I think there is a way with prey_match(), but I don’t know how to make regular expressions. Additional information: the codes are all about 30 characters long and contain only lower letters and numbers.
Any help is really appreciated. Thank you!
Simple but should work for your case.
Output: