Can one use str_replace to do this:
should end up removing the leading AND
In perl this would be
or
(yes, it can be do in one statement) to remove a leading 'AND' and possibly any whitespaces(blancs) before it.
Code:
$string=' AND VALUE=..... AND .....';
should end up removing the leading AND
In perl this would be
Code:
$string=~s/^\s+AND//
Code:
$string=~s/^AND//