Template:MassBank/Matrix
From Metabolomics.JP
(Difference between revisions)
m |
m |
||
Line 117: | Line 117: | ||
</small> | </small> | ||
+ | {{#repeat:MassBank/SearchFgmt|1| | ||
{{#lua: | {{#lua: | ||
− | local | + | local fgmt = ""; |
+ | local ruler; | ||
for line in stdin:gmatch("[%S ,]+") do | for line in stdin:gmatch("[%S ,]+") do | ||
− | if (string.find(line, ":") | + | if (string.find(line, ":") == nil) then |
+ | ruler = line; | ||
+ | else | ||
head = string.match(line, "([CHNOPSl0-9]+) *: *[CHNOPSl0-9 ]+"); | head = string.match(line, "([CHNOPSl0-9]+) *: *[CHNOPSl0-9 ]+"); | ||
− | + | fgmt = fgmt .. " " .. head; | |
end | end | ||
end | end | ||
− | print( | + | print(ruler); |
− | | | + | |{{{data|CHClNOPS}}} |
− | {{{data|CHClNOPS}}} | + | }}| }} |
− | }} | + |
Revision as of 15:33, 12 May 2009
MassBank/Matrix | 141 CHClNOPS |
141 CHClNOPS |