Take the 2-minute tour ×  I am trying to work out a formula to
match a following pattern: input string example:   if any of the
patterns above exist in a particular input string I want to
match it as the same pattern.  also is it possible to do a
variable substitution using regex? meaning check for the 3 chars
of the string by using each character as a variable and just
doing an increment/decrement for each character? so that you
dont have to specify the particular number ranges (hardcoding
the pattern string ) for different patterns?  Is there any good
library one can use for this?? I was working with Pattern class
in java.  If you have any link which would be helpful please
pass it through :) Thank you.  share|improve this question And
what about 343? –  Nikita Rybak Aug 23 '10 at 3:36 ya that also.
(3/4)(3/4)(3/4) for each character. similarly wanted to do it
for multiple numbers. so was looking for some kind of variable
substitution ( for each character ) if that is possible in
regex. –  JJunior Aug 23 '1