I am writing as ..
lets say we are finding a regexp of 7 then the multiple of 7 in reg exp would be [7|14|21|28]
does this seems resonable? please let me know..
I am writing as ..
lets say we are finding a regexp of 7 then the multiple of 7 in reg exp would be [7|14|21|28]
does this seems resonable? please let me know..
[7|14|21|28]
matches any character 7
, |
, 1
, 4
, 2
, 8
.
To match 7
or 14
or 21
or 28
, you should use group ((...)
) instead of set of characters ([...]
):
(7|14|21|28)