this may seem obvious, but I spent too much time trying to get it to work ...
I am trying to extract a substring from a file using Javascript Regex. Here is a snippet from the file:
DATE:20091201T220000 SUMMARY:Dad birthday
the field I want to extract is Summary, so I'm trying to write a method that returns only the resulting text. Here is a way:
extractSummary : function(iCalContent) { var arr = iCalContent.match(/^SUMMARY\:(.)*$/g); return(arr); }
clearly i regex noob :)) Could you fix this please? thank
javascript string regex icalendar
PapelPincel Nov 10 '09 at 11:30 2009-11-10 11:30
source share