in reply to Replacing characters in a line

the following simple regex should work:
s/ D / X /g;

Replies are listed 'Best First'.
Re^2: Replacing characters in a line
by monkey_boy (Priest) on Mar 04, 2005 at 14:45 UTC
    *UPDATE*

    Ignore me. I didnt read the message properly

    but that would also replace the other lonley "D"'s
    e.g.

    ATOM   3316  N   TYR D  24      97.479  18.805   2.990  1.00 36.32      D    N 
    



    Im so sick of my Signature...