nchase
September 7th, 2007, 03:20 AM
I'm trying to search through a file for strings that start with a variable and end at a quotation mark. I'd like to print every instance of such a string.
Is such a thing possible?
Example: My variable in this example is x if I had a file containing
"gee, this sure is a difficult problem for me," said xavier. "Why can't it be easier to fix this xylophone?"
I would want it to print:
Xavier.
and...
x this xylophone?
Again, is this possible?
Is such a thing possible?
Example: My variable in this example is x if I had a file containing
"gee, this sure is a difficult problem for me," said xavier. "Why can't it be easier to fix this xylophone?"
I would want it to print:
Xavier.
and...
x this xylophone?
Again, is this possible?