I was wonder if someone could write me a little regular expression. I have some knowledge about these but for some reason i cant pick up everything about them yet.
I'm writing a vbscript that will search a computer for all folders/files and create an xlm file that would be a tree to your entire computer. Dont ask, its just for fun  . The problem i get is when a folder starts with an illegal character (ex: -, =, ~, ` ) it gives me an XLM error. So i'm looking to return everything in the folder name unless the folder starts or ends with an illegal character. I'm not sure but i think if the character isnt in the begining or end then its ok for xml.
TY!
Added: I was wrong. the illegal character cannot be found anywhere within the strong. I need to strip the entire string. I guess i would need something that would return all the letters and numbers with nothing else.
Right now i have ([A-Za-z0-9]+) which i think will do the trick. But i forgot how to return the results 
|