How to replace number data within a string to a different number?
<p>There is a string variable containing number data , say <code>$x = "OP/99/DIR";</code> . The position of the number data may change at any circumstance by user desire by modifying it inside the application , and the slash bar may be changed by any other character ; but the number data is mandatory. How to replace the number data to a different number ? example <code>OP/99/DIR</code> is changed to <code>OP/100/DIR</code>.</p>
