I am trying to detect text between 3 or 4 tags and I have no idea how – USING PHP.
I know that I am supposed to use regex but thats too hard for my mind :X
If you can explain me how to do it / give me example of what I need it will be great!
I am trying to detect code between <script> tag > which mean if I got <script type="text/javascript"> it will detect also. if there’s <script src="..."> then it wont detect the text between (shouldnt be text between).
same with script ^ if there’s <style type="text/css"> it will detect the text between too
and I also want to detect text between style=”detect text here” artitube.
Last tag I want to text between is <?php ?>. (php can be also in upper case, so I dont want the regex to be case sensitive).
Thanks for the helpers!!!
Using regular expressions you could write something like: