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
arithmetic operations
Moderator: General Moderators
- prometheuzz
- Forum Regular
- Posts: 779
- Joined: Fri Apr 04, 2008 5:51 am
Re: arithmetic operations
Well, that's an easy one to answer: no, that's not possible.bogha wrote: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
You will need an expression parser for that (or a scripting language capable of parsing such expressions).
Good luck.