I need help in fixing a string, i need to remove DIGITS from a string using "preg_replace" after the first two any characters of the string, examples can be:
- N02 [ Should remove 2 ]
- AX1001 [ Should remove 1001 ]
- AR2003 [ Should remove 2003 ]
- AR [ out put should be AR, because there are no digits ]
Currently am using: preg_replace( '/\d/', '', "A0123" );
But it removes digits from the start. Any one can help?
UPDATE:
AXZ1001 : in this case it should product AXZ
AX1001 : in this case it should product AX
A1001 : in this case it should product A1