I'm wondering how to match all words that contain a given digit?
I've looked at O'Reilly Regular Expressions Cookbook, but failed to get the idea.
Case 1. Some characters are in front of the digit.(Solved)
\b(\d+[^\s]+)\b
time=>123, address~4321
Case 2. Some characters are followed by digit.(Solved)
\b(\d+[^\s]+)\b
1234<=range, 321=>location
Case 3. Some characters are forth digit.
time~1325@range, address*4321%location
Case 4. Duplicate in a single line of Case1 or Case2 or Case3.
firstTime=12 secondTime=34
429923<=firstRange 353534=>secondRange
A12345alpha B9876beta