Thejavaman1
10-05-2002, 11:05 PM
I have never liked them, but I need to use them. Basicly this is what I want to do.
Take this
<html>
<head>
<title>%page_title%</title>
</head>
<body>
%page_header%
blah blah blah<br />
%page_content%
blah blah blah
%page_footer%
<body>
</html>
And turn that into an array like
items[0] = page_title
items[1] = page_header
items[2] = page_content
items[3] = page_footer
I think this can be done with regexp, however I don't know how to do it... :(
Take this
<html>
<head>
<title>%page_title%</title>
</head>
<body>
%page_header%
blah blah blah<br />
%page_content%
blah blah blah
%page_footer%
<body>
</html>
And turn that into an array like
items[0] = page_title
items[1] = page_header
items[2] = page_content
items[3] = page_footer
I think this can be done with regexp, however I don't know how to do it... :(