Here's what I need to do- let's say I have some of the following.
Command "testing this script" par1 par2 par3
or
"Testing the script" "par1 par2" test test test
I need this to show up in three variables [an array] such as...
[0] Command
[1] testing this script
[2] par1 par2 par3
[0] testing the script
[1] par1 par2
[2] test test test
I've had this working in the past, but have missed out of the following idea:
You can put multiple words with spaces in quotes
Any thoughts on how to turn this into the array without distroying the formatting and the like. I don't quite know how to deal with finding the next quote and using it- at least in an efficient manner.
Also to be noted, the actual file being read in [i'd read it into an array and then start using these parsing tools on each line] is modifyable by the user- so it needs to be able to handle errors efficiently [if there is only one quote and the like.
Does a script like this exist? I'm using it to make a much larger class.
Thanks in advance.