I'm trying to extract a substring from a file with Javascript Regex. Here is a slice from the file :
Version=2
Format=jpg
Size=1280x960
Date=2013/05/08
Time=23:49:40
Value=250000
I want to extract only Version and Value from the text file.
I tried extracting the Version using this but it doesn't return anything.
$('.Content').html().match(/^Version\:(.*)$/g);
$('.Content').html() contains the whole text file.
:in place of=?$('.Content').html().match(/Version=(.*)/g);