I have a text file that contains a hidden message with a bunch of random characters in between letters and # symbols that separate each word. Here is the first line of the text:
I need to figure out how to write a single line for my toFind phrase that gathers only the letters and the # symbols. Here is what I have so far:
toFind = '[[a-zA-Z][#]]';
matches = regexp(line,toFind,'match');
This toFind statement finds all of the letters and #'s, but it also keeps a random ']' symbol in there. I'm not sure how to re-write the toFind statement to exclude the ']'.