Hi all,

I have a large file that I am trying to parse.

I have a many lines that look like this


\\text1

I need an expression that will change \\text1 to text1=

so if I have something like this

\\text1 

asdfkjaslkfj
asdlfkjasljkf
asdlkfjasldfkj
asldkfjalskfj

\\text2 
erweiurwoeir
werqwer
qwer
qwerqw
er

\\text3

asdlfkw
xcvsdf
zxcvcgn
sdfgwr
xcdfvszdfg


it will become

text1 = "

asdfkjaslkfj
asdlfkjasljkf
asdlkfjasldfkj
asldkfjalskfj
" text2 = erweiurwoeir
werqwer
qwer
qwerqw
er
" text3 = "asdlfkw
xcvsdf
zxcvcgn
sdfgwr
xcdfvszdfg
"


Any Ideas,
Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to