I will start writing that now. Um, the input is like this: ATOM 16 NZ LYS A 7 -19.664 15.558 -9.499 1.00 18.80 N ATOM 17 H LYS A 7 -19.967 21.014 -14.224 1.00 0.00 H -The 18.80 and N parts are supposed to follow 1.00 directly, not from a space below but the comment spaces, doh.- And I'm supposed to print out ATOM lines that don't have "H" near the 17 part. It keeps printing out all lines despite the syntax. HETATM is working properly and a sample of it -from another input pdb file since this 1GRL.pdb doesn't have HETATM's in it, this is from the input file 1FFL.pdb- HETATM 1 N CXM A 1 -12.588 -1.070 15.591 1.00 25.28 N HETATM 2 CA CXM A 1 -11.877 -0.094 16.395 1.00 25.28 C and I'm supposed to print HETATMS that don't have HOH on the part where CXM stands. HETATM 2153 O HOH A 300 -38.403 0.000 33.125 0.50 13.41 O HETATM 2154 O HOH A 301 -29.459 12.090 33.186 1.00 31.37 O these ones are successfully ignored by the program.

In reply to Re^2: Help for a regex problem ? by hellworld
in thread Help for a regex problem ? by hellworld

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.