Thnx for the pattern 🙂 they arnt easy to build 🙁
Let me explain the thing i do with the large text.
its pasted like this:
1 30463 CableKing 442 33
2 21354 Super Store 214 01445
3 21889 things4you 255 03627
well i need the '30463' and '442' from every entry
the data is copy=pasted tab-seperated, so it containes a million white-spaces when posted.
so first i delete all the too-many spaces with " +", " ", $text
then i delete all the characters a-Z, because i dont need the names
i keep this:
1 30463 442 33
2 21354 214 01445
3 21889 4 255 03627
Then i explode everything into an array, and i use
array['1'] and array['2']
array['5'] and array['6']
array['9'] and array['10']
to get the data i need
But as you can see, the '4' on row 3 screws it up, because there is an array-key too many now 🙂
that is why i need to delete all names with numbers in them.
It would be easy if i could keep the names yes.
but 'cableking' is 1 word, Super Store is 2 word. so when i use
explode ( $text, " ")
i would have again 1 key too many
It would be so much simpler if i could use the tabs, because the data being copy-pasted is tabseperated. But tab's arnt being transfered when action="post"'ed right? they are converted to many spaces.
Many you know a better solution, but your pattern should allready help me alot 🙂
thnx.