Here’s my regex problem: How can I select all results with a certain ID, e.g. “…ID=99″ but excluding the results countinuing with an additional number like ID=”990” or “ID=9923”.
However if the string countinues with another non-number character (“&”), e.g. “…ID=99&PARAM=9290” it also should be included.
I am totally confused turning this into a regex selection. I would appreciate any idea on this very much!
(by the way if you are really into regex. how did you learn it? any recommended resources, books, tutorials?)
Note: I use this to filter my search results in google analytics as you can actually use regex in the “Filter Page” form. Maybe this is useful information to you.
Use \b, word boundary, i.e.
ID=99\b
For books Regular Expression Recipes: A Problem-Solution Approach is a good one.