Heya,
Thought I would try this reworded, and with an attachment that shows the fromat used, etc.
So using the attached sample.txt , can anyone, using preg_replace, or preg_match, or preg_match_all , and PHP :
1) open the file, read it AS IS, do not edit the file as the format needs to be unchanged.
2) replace <textarea name=""></textarea> with <table><tr><td>NAME=</td><td>VALUE=</td></tr></table>
So when run, the textarea is converted to a table with the name and value of the textareas contained in the file.
Anyone up to this?
So far I got:
preg_replace('/<textarea(.)name="(.)"(.)>(.)<\/textarea>/is','html here',$content);
Which does not work at all for me.
So, I am iterested in how someone else might go about this, or if a regex god comes in and modifies my regex, well that would be nice too.
Maybe Weedpacket, or someone of his caliber.
Thanks in advance for the effort(s).