Re: FN-FORUM: RegEx help
date posted 15th January 2005 18:23
What language are you working with?
In PHP, this seems to work:
if(ereg("^C:\\\+","C:\asdf")){
echo "yes";
}else{
echo "no";
}
So you could just loop through each variable. Basically the pattern is: ^C:\\\+
Hope this helps,
Joe,
On 15 Jan 2005 18:41:18 -0000, Rob Hull [EMAIL REMOVED] wrote:
> Ok, I know next to nothing about regular expressions. I tried looking on
> google and that didn't help me.
>
> I need a regEx to find all lines in a text file that don't start with "C:\"
>
> Is it possible?