hankknight
asked on
Regex to place all contents of <[edit]><[/edit]> in array
I want everything between
<[edit]>
and
<[/edit]>
To go into an array.
This should be case insensitive and must be PHP4 compatible.
So in the below example, the following array should be formed:
-> Item 1
-> Item 2
-> Item 3
<[edit]>Item 1<[/edit]> Hello World <[edit]>Item 2<[/edit]> Testing <[edit]>Item 3<[/edit]> The End
<[edit]>
and
<[/edit]>
To go into an array.
This should be case insensitive and must be PHP4 compatible.
So in the below example, the following array should be formed:
-> Item 1
-> Item 2
-> Item 3
<[edit]>Item 1<[/edit]> Hello World <[edit]>Item 2<[/edit]> Testing <[edit]>Item 3<[/edit]> The End
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the info!
Thanks for the question and the points.
ASKER
Thanks, I have posted a related question here:
https://www.experts-exchange.com/questions/23844388/Regex-Create-array-with-content-and-attributes-of-special-tags.html
https://www.experts-exchange.com/questions/23844388/Regex-Create-array-with-content-and-attributes-of-special-tags.html
Open in new window