Searching the string Batch Report 20120724.pdf
Using regexr.com and the expression: b\w+[/b]
On regexr.com, it finds: 20120724 which is what I’m looking for.
When I enter the same strings into the RegEx in Xojo, it returns no results.
Thanks Bernardo and Greg. It does work, Bernardo. My problem was a very complicated set of code on my part that caused it to be difficult to find the issue of using the wrong TextFields. Put in the simpler code and it was easy to find & fix it.
Greg, the ([0-9]{8}) usage would work but not all of these dates are 8 characters with no hashes. The goal is to find 20120724 or 201207 or just 2012. As I’m reconstructing these dates into actual SQL date strings, getting the parts of the date, so the original SearchPattern works best for me.