This must be an easy one, but I am trying to detect if the integers 28, 81, 379 or 380 exist in a string.
I was using this pattern:
pattern = /28|81|379|380/
But it also returns true for 381. So I need a modifier to make sure it is only looking for 81 specifically, and not 81 within a longer number. I know about the ^ and $ modifiers to check for the start and end, but I can't seem to figure out how to work those in to a pattern that is using the | symbol to check alternatives.
Regex is not my strength - hope you can help! - Dan