I think that
([^0-9]*[0-9][0-9][0-9][0-9][0-9][0-9][^0-9]*)
should do it.
It may miss some. Especially at the beginning and end of a line, so test it carefully. It may require more.
(
I've edited it now! It should be better than originally posted.
([0-9][0-9][0-9][0-9][0-9][0-9]
([^0-9][0-9][0-9][0-9][0-9][0-9][0-9][^0-9]))
)
( I used
"TEST123456TEST.txt" "123456TEST123456.txt" "TEST123456.txt" "123456.txt"
as attachments. Newsbin filtered them and gave this message:
123456test<1 KB [01],Profile - Filename Filtered,3/15/2003 07:05,"me@home" <me@home.nut>
)
The newsbin site has some regex help at:
http://www.newsbin.com/nb33help/regexp.htm
Dexter mentions it in
http://forums.newsbin.com/viewtopic.php?t=4322
but the (sentence-ending) period gets included in the link, so the link doesn't work!
Someone may have a compressed expression that will do the same thing,
but will others (or the newsbin REGEX engine) understand it?
([^0-9]*[0-9][0-9][0-9][0-9][0-9][0-9][^0-9]*)
Explained
( - Start Grouping filter expression
[^0-9]* - Include ZERO or more
leading Non-numeric character(s)
[0-9] ... [0-9] - Check for 6 digits
[^0-9]* - Include ZERO or more
trailing Non-numeric character(s)
) - End Grouping filter expression
As used inside a set, the '^' operator EXCLUDES the set from the filter.
The '*' operator matches ZERO or more of the PRECEDING character(s) or set.
hth
PS...Just curious... Why six-digit filenames? EXACTLY and ONLY six-digits?
or just have six-digit strings IN them?