*Hi David*

How did you solve it?

Did you brute force it or using some Regex Ninja tool that you want to
share?

.peter.gfader.
http://blog.gfader.com


On Mon, Oct 4, 2010 at 1:55 PM, David Burstin <david.burs...@gmail.com>wrote:

> Solved: ([^.]*)(\.*)?
>
>
> On Mon, Oct 4, 2010 at 1:34 PM, David Burstin <david.burs...@gmail.com>wrote:
>
>> I need a regex to match "C:\Test\AFile" from all of the following:
>>
>> 1:  "C:\Test\AFile"
>> 2:  "C:\Test\AFile.abc"
>> 3:  "C:\Test\AFile.abcd"
>>
>> Can't seem to get it working.
>>
>> ((.*\\)*.*)(\....(.)?) matches 2 and 3, but not 1
>> ((.*\\)*.*)(\....(.)?)? matches 1
>>
>> Any help appreciated.
>>
>> Cheers
>> Dave
>>
>
>


-- 

.peter.gfader.
http://blog.gfader.com/
http://twitter.com/peitor

Reply via email to