Thanks, I not realize that [.] mean real dot... Brains is hot and I feel that I (and sure many other) just need few good examples... But I can't sleep until I'll know why not match this pattern...
$line = "C:\Documents and Settings\User\NTUSER.DAT"
RegExp($line, '^C:\\Documents and Settings[\A\\]*\.DAT$'); don't match
RegExp($line, '^C:\\Documents and Settings[\A\\]*'); works until here
1. Matching ^ - start of line
2. Exactly matching C:\Documents and Settings
3. Next starts run of any number of alfanumeric symbols, slashes or nothing of it
4. Next should be real dot and DAT at and of line - but this is not match.
Please direct me where I was wrong...
BTW I'm read some info about PHP regexp (which mainly the same as current implementation), and found that although by default they are consume next char(s) after * or +, it's possible to use "?" after them, which stop consume effect (ab*?b will not consume last "b"). Current Autoit implementation of "?" seems not have the same "magic"...
Edit: accidental smile conversion
Edited by Lazycat, 30 November 2004 - 07:52 PM.