VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Thu May 31 2007 - 17:17:25 CDT
- Next message: Richard Swenson: "Order Parameter Script for changing bilayer normal"
- Previous message: Leonardo Trabuco: "Re: Using regular expressions on tcl atomselection"
- In reply to: Cesar Luis Avila: "Using regular expressions on tcl atomselection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Thu, 31 May 2007, Cesar Luis Avila wrote:
CLA> How may I use regular expressions for atomselection on tcl console?
CLA> For selecting all atoms starting with H in the graphical interface you write
CLA> name "H.*"
CLA>
CLA> But on tcl console
CLA> [atomselect top "name H.*"]
you can use a literal string:
[atomselect top {name "H.*"}]
or backslash-escape the '"':
[atomselect top "name \"H.*\""]
cheers,
axel.
CLA> cannot be used. What would be the correct expression?
CLA> Regards
CLA> Cesar
CLA>
-- ======================================================================= Axel Kohlmeyer akohlmey_at_cmm.chem.upenn.edu http://www.cmm.upenn.edu Center for Molecular Modeling -- University of Pennsylvania Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323 tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425 ======================================================================= If you make something idiot-proof, the universe creates a better idiot.
- Next message: Richard Swenson: "Order Parameter Script for changing bilayer normal"
- Previous message: Leonardo Trabuco: "Re: Using regular expressions on tcl atomselection"
- In reply to: Cesar Luis Avila: "Using regular expressions on tcl atomselection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]