Template:MassBank/Matrix
From Metabolomics.JP
(Difference between revisions)
m |
m |
||
| Line 121: | Line 121: | ||
local ruler; | local ruler; | ||
for line in stdin:gmatch("[%S ,]+") do | for line in stdin:gmatch("[%S ,]+") do | ||
| − | if (string.find(line, " | + | if (string.find(line, "^&&[&%a%d]+&&$") ~= nil) |
ruler = line; | ruler = line; | ||
end | end | ||
| Line 130: | Line 130: | ||
{{#lua: | {{#lua: | ||
| − | local fgmt = "" | + | local fgmt = "" |
| − | local ruler | + | local ruler = nil |
for line in stdin:gmatch("[%S ,]+") do | for line in stdin:gmatch("[%S ,]+") do | ||
if (string.find(line, "^&&[&%a%d]+&&$") ~= nil) | if (string.find(line, "^&&[&%a%d]+&&$") ~= nil) | ||
| − | then ruler = | + | then ruler = line |
end | end | ||
end | end | ||
| − | print(ruler) | + | print(ruler) |
|{{{data|CHClNOPS}}} | |{{{data|CHClNOPS}}} | ||
| + | }} | ||
Revision as of 23:48, 13 May 2009
No 'ION INFO' line in the form &&(formula)&&(formula)&&...&&
| MassBank/Matrix | 64 CHClONSP |
| 64 CHClONSP |
|
nil