arithmetic operations
Posted: Wed Mar 25, 2009 4:10 am
hi
is it possible to use the regex to check values depending on some conditional and arithmetic operation
for example
i have 7 digit number and i want to do the follwoing
if ( A==B && B==C && C==D) // DO SOMETHING
IF(A==(B+1) && B==(C+1)) // DO SOMETHING
// A , B ,C,D are elements in an array
i want this to be done using the regular expression
best regards
is it possible to use the regex to check values depending on some conditional and arithmetic operation
for example
i have 7 digit number and i want to do the follwoing
if ( A==B && B==C && C==D) // DO SOMETHING
IF(A==(B+1) && B==(C+1)) // DO SOMETHING
// A , B ,C,D are elements in an array
i want this to be done using the regular expression
best regards