I am trying to get the src of all the script tags and i want to store that an in an array. I am really stuck with these any help would really be appreciated.
<script type="text/javascript" src='//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script>
<script type="text/javascript" src='static/tabthemes/js/json2.js'></script>
<script type="text/javascript" src='static/tabthemes/js/underscore.min.js'></script>
<script type="text/javascript" src='static/tabthemes/js/backbone.min.js'></script>
<script type="text/javascript" src='static/tabthemes/js/mustache.js'></script>
<script type="text/javascript" src='static/tabthemes/js/jquery.wipetouch.js'></script>
<script type="text/javascript" src='/static/tabthemes/js/spin.js'></script>
Somebody please help me with this !! 🙁
You can try with
NSRegularExpression, e.g.:then check
NSRegularExpressionreference for ways to match the actual data. In your case, the methodshould do exactly what you are after.