Yes, you can use a regex for this (this is what is good for them). Assuming you always want the line after the pipe (|) in the line starting with "_Comments: SW |", here is how you can extract it:
var matchresult = ows_MetaInfo.match(/^_Comments:SW\|(.*)$/m);
var comment = (matchresult==null) ? "" : matchresult[1];
, .match() String . ( 0) ( - , ^ $, , "m" , ), - , . , , ( 1).
( "_Comments: SW |" ows_MetaInfo), .match() null, , .
, Regex Mozilla Dev: https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions