Hi all,
I have a text file with several hundred lines. I need to go through each line and see if it follows the following pattern:
*,*,*,"*, *"
Where the asterisk represents any character besides spaces and quotation marks. I think I can do this with regular expressions?
Example:
Good: Smith,John,smithj,"Smith, John"
Bad: Smith, John,smithj,"Smith, John"
Bad: Sm ith,John,smithj,"Smith, John"
I also need to tack on a string to the ends of each line in the text file. Any ideas?
Thanks!
Brandon
I have a text file with several hundred lines. I need to go through each line and see if it follows the following pattern:
*,*,*,"*, *"
Where the asterisk represents any character besides spaces and quotation marks. I think I can do this with regular expressions?
Example:
Good: Smith,John,smithj,"Smith, John"
Bad: Smith, John,smithj,"Smith, John"
Bad: Sm ith,John,smithj,"Smith, John"
I also need to tack on a string to the ends of each line in the text file. Any ideas?
Thanks!
Brandon