OK: I got it; the following works:
(sort-regexp-fields nil "^.*$" "\\<p\\w*\\>" (region-beginning)
(region-end)))
<
http://www.sgc.utoronto.ca/pmwiki/pmwiki.php?n=ubiquitinbiology.HomePage>
Sirano
From: Sirano Dhe-Paganon [mailto:sirano.dhepaganonï¼ utoronto.ca]
Sent: Monday, November 15, 2010 1:40 PM
To: xemacs-beta(a)xemacs.org
Subject: simple sorting noob
How can I sort-lines within a region according to the characters after the
first tab? this commandline: "(sort-lines +2 (start end))" does not work
with the data shown below:
data:
ubh51.0001-0172.178H07.2.~~.~.~ pNICCH
ubh51.0001-0246.165G07.1.01.~.~ pET28MHL
ubh51.0001-0246.165H09.2.01.~.~ pET28aLIC
ubh51.0001-0246.165H10.2.01.~.~ pNICCH
ubh51.0001-0246.165H11.1.??.~.~ pET28GSTLIC
ubh51.0001-0246.165H12.e.nd.n.~ pMALp2e
ubh51.0001-0246.166H02.~.~~.~.~ pTYB2
ubh51.0001-0246.178G10.0.~~.~.~ pNICCH+1G
ubh51.0001-0246.178G11.0.~~.~.~ pNICCH+2G
ubh51.0001-0246.178G12.0.~~.~.~ pNICCH+3G
ubh51.0001-0246.178H01.0.~~.~.~ pNICCH+Thr
ubh51.0001-0246.178H02.0.~~.~.~ pNICCH+Tev
ubh51.0001-0246.178H03.0.~~.~.~ pNICCH
Sirano
<
http://www.sgc.utoronto.ca/pmwiki/pmwiki.php?n=ubiquitinbiology.HomePage>
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta