I am stuck at one point and newbie at regex:
I need to parse a string in php and find out multiple values starting from particular pattern.
But that string which needs to be parsed is actually a javascript code.
This is the string (javascript code) that needs to be parsed :
<script src="http://192.168.1.172/jsScripts/jquery.min.js"></script>
<link rel="stylesheet"
type="text/css"
href="http://192.168.1.172/adqCss/adqExapandable.css">
<script src="http://192.168.1.172/jsScripts/adqExpandable.js"></script>
<script>
var t1 = ${kom_demo_test1};
var t2 = ${kom_demo_test2};
var url = 'http://demo.com';
</script>
Now i need to identify all words that start with ${kom_dom_ and then i want to store test1 , test2 in an array .
Any help is appreciated.
Thanks in advance :)