Lets say I have some code....
Code:
<img src="dir/cas.jpg"><img src="dir/ast.jpg">
I want to match this string to an array, using the values in the above code to the variable $matches to return the following:
Code:
matches[0] = cas
matches[1] = ast
Then I want to put all the results into a single string:
How would I do this? I know how to match in PHP, but Javascript is different.
--------------- Added [DATE]1248292603[/DATE] at [TIME]1248292603[/TIME] ---------------
revised my requirements...
--------------- Added [DATE]1248315264[/DATE] at [TIME]1248315264[/TIME] ---------------
So no one has any ideas for me?
This is the last thing I need for an AJAX script I am working on.