8 Jan
2011
8 Jan
'11
7:06 p.m.
corvid (2011-01-08 17:30):
Jeremy wrote:
+^dpi/[^/]*\.dpi$
I get mixed up by the differences in the various regexps out there. Is this "[^/]" intended as a *looks up the term* bracket expression?
"[/]*" matches 0 or more "/" characters "[^/]*" matches 0 or more characters that are not "/". It may as well be [a-z] versus [^a-z]. So the purpose of brackets isn't changed here, i.e. they are still used to match character classes, and "^" is merely a negation. And I believe it is supported by basic, extended and pcre regexps. -- -- Rogut?s Sparnuotos