Hi,
I've tryed out several ways with regular expressions, but couldn't make the good one ...
Here is piece of my code
So what i want it to do is to check into the variable $rs[4] if it has this :
And usually it always have : Delete "Id number up to 999999"
So what is wrong with this regular expression ? :
I've tryed out several ways with regular expressions, but couldn't make the good one ...
Here is piece of my code
Code:
[PHP]if(eregi("^(Delete{1})"
."([:space:]{1})"
."([:digit:]{1,6})(.*)",$rs[4], $resb))[/PHP]
So what i want it to do is to check into the variable $rs[4] if it has this :
Code:
Delete 171
And usually it always have : Delete "Id number up to 999999"
So what is wrong with this regular expression ? :
Code:
^(Delete{1})([:space:]{1})([:digit:]{1,6})(.*)