Hi all,
it might look obvious but I wasted too much time trying to get it to work...
I'm trying to extract a substring from a file with Javascript Regex. Here is a slice from the file :
DATE:20091201T220000
SUMMARY:Dad's birthday
the field I want to extract is Summary, so I'm trying to write a method that returns only the summary text. Here is the method :
extractSummary : function(iCalContent) {
/*
input : iCal file content
return : Event summary
*/
var arr = iCalContent.match(/^SUMMARY\:(.)*$/g);
return(arr);
}
clearly, I'm a Regex noob :)) could you fix it please ? thanks