Pattern match excluding spaces???
Posted: Sun May 22, 2011 10:00 am
Hello again,
As always, thank you for your help! I will usually spend a couple hours trying to figure something out, but then as a last resort I come here for help. I hope that's ok.
Is there a way to pattern match a line that has spaces... when the words I have do not have spaces?
Here is what I mean...
If I have a phrase like... 'california traffic school' in a text file... and I'd like to extract it... but all I have in another text file is that phrase minus the spaces... like... 'californiatrafficschool'...
Is there a way for me to extract the phrase with spaces using the matching phrase I have is without the spaces?
So again, I have this... 'dogtrainingvideos' and I'd like to extract the same phrase from a file... but the phrase has spaces between words like... 'dog training videos'.
Thank you.
Regards,
ed
As always, thank you for your help! I will usually spend a couple hours trying to figure something out, but then as a last resort I come here for help. I hope that's ok.
Is there a way to pattern match a line that has spaces... when the words I have do not have spaces?
Here is what I mean...
If I have a phrase like... 'california traffic school' in a text file... and I'd like to extract it... but all I have in another text file is that phrase minus the spaces... like... 'californiatrafficschool'...
Is there a way for me to extract the phrase with spaces using the matching phrase I have is without the spaces?
So again, I have this... 'dogtrainingvideos' and I'd like to extract the same phrase from a file... but the phrase has spaces between words like... 'dog training videos'.
Thank you.
Regards,
ed