Posted on 2004-09-15
I need help modifying a regular expression. My current one is :
which gets "VAL" code from the line below in a large file
ATOM 2 CA VAL A 3 17.591 48.101 25.416 1.00 27.93 C
however sometimes the file can be line
ATOM 1358 CA ALEU A 199 -3.698 -19.821 -32.696 0.50 21.71 C
and I can't match the "LEU" code.
Can someone help modify my expression so I can accomadate both these lines in the input to get the desired code like VAL and LEU in the examples above?