Hello,
I am trying to capture the following content in PHP using regular expressions:
/*
Name: Test
Description: my test
*/
I have tried the code from here: http://stackoverflow.com/questions/287991/match-everything-inbetween-two-tags-with-regular-expressions but it doesnt capture the new lines.
EDIT: I used the following regular which works on a single line but it stops working as soon as it sees a line break
EDIT2: I want to include that I am running this script on a large piece of text which has a lot of line breaks. I am sure we need to use * because I am unsure of the number of line-break occurrences.
/*(.*?)*/
TIA