Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extract string from string javascript based on word

var str = '#anotherdata=value#iamlookingforthis=226885#id=101&start=1';
var value = str.match(/#iamlookingforthis=(d+)/i)[1];

alert(value); // 226885
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #string #string #javascript #based #word
ADD COMMENT
Topic
Name
7+6 =