regular expression (User to User help)
Posted: Sun May 20, 2001 2:36 am
Contiguous and non-contiguous articles can be found by
regexpressions like the following:
Suppose that you are looking for several files
of a RAR set named 'zzz'
and you are missing RAR files .r39-.r43 and file .r51.
In the 'Find In Subject:' box enter one of the following
Regular Expressions:
zzz\.r(39|40|41|42|43|51)
or
zzz[.]r(39|40|41|42|43|51)
or the FULL, bulky expression
zzz.r39|zzz.r40|zzz.r41|zzz.r42|zzz.r43|zzz.r51
All three expressions are functionally equivalent.
-------------------ALSO----------------------
Assume that you are looking for the following files from
RAR set named 'yyy'
.r20-.r24 and .r31-.r35 and .s00-.s04 and .s11-.s15
Use the following expression.
-------------------
yyy\.((r((2[0-4])|(3[1-5])))|(s((0[0-4])|(1[1-5]))))
**Note that the 'r' and the 's' are in ().**
-------------------
xxx\.r(0[9]|1[0|1|2|3|4|5|6])
would find all _existing_ RAR set 'xxx' files .r09 - .r16
-------------------
vvv\.((r|s)((0|1)[0-9]))
would find .r00 - .r19 and .s00 - .s19
-------------------
BE SURE: in cases where the file/extension separating period
is used in a distributive expression, you must ESCAPE '\.' or
SQUARE-BRACKET '[.]' the dot '.' or it could be assumed to be a
REGEXP operator.
zzz\.r(39|40|41|42|43|51) 'distributive - as the "." is
_distributed_ (according to the distributive law) among the
various entities in the (39-51) portion of the expression.'
more on the distributive law -
http://kids.infoplease.lycos.com/ce6/sci/A0815650.html
** For readability and ease of future understanding I
recommend escaping the dot '\.' to avoid confusion with SETs
of expression strings which are enclosed in square brackets. **
** In cases where multiple partial expressions are used, check
your parenthesis nesting levels if your expression does not
work the first time! **
More regexp info *used* to be at
http://www.newsbin.com/regexp.htm
I guess that they haven't moved that page yet. Give 'em time.
I like the forum!
This post is a bit lengthy, but this subject CANNOT be explained in few words!
--If I have misstated something, someone please post a revision--
regexpressions like the following:
Suppose that you are looking for several files
of a RAR set named 'zzz'
and you are missing RAR files .r39-.r43 and file .r51.
In the 'Find In Subject:' box enter one of the following
Regular Expressions:
zzz\.r(39|40|41|42|43|51)
or
zzz[.]r(39|40|41|42|43|51)
or the FULL, bulky expression
zzz.r39|zzz.r40|zzz.r41|zzz.r42|zzz.r43|zzz.r51
All three expressions are functionally equivalent.
-------------------ALSO----------------------
Assume that you are looking for the following files from
RAR set named 'yyy'
.r20-.r24 and .r31-.r35 and .s00-.s04 and .s11-.s15
Use the following expression.
-------------------
yyy\.((r((2[0-4])|(3[1-5])))|(s((0[0-4])|(1[1-5]))))
**Note that the 'r' and the 's' are in ().**
-------------------
xxx\.r(0[9]|1[0|1|2|3|4|5|6])
would find all _existing_ RAR set 'xxx' files .r09 - .r16
-------------------
vvv\.((r|s)((0|1)[0-9]))
would find .r00 - .r19 and .s00 - .s19
-------------------
BE SURE: in cases where the file/extension separating period
is used in a distributive expression, you must ESCAPE '\.' or
SQUARE-BRACKET '[.]' the dot '.' or it could be assumed to be a
REGEXP operator.
zzz\.r(39|40|41|42|43|51) 'distributive - as the "." is
_distributed_ (according to the distributive law) among the
various entities in the (39-51) portion of the expression.'
more on the distributive law -
http://kids.infoplease.lycos.com/ce6/sci/A0815650.html
** For readability and ease of future understanding I
recommend escaping the dot '\.' to avoid confusion with SETs
of expression strings which are enclosed in square brackets. **
** In cases where multiple partial expressions are used, check
your parenthesis nesting levels if your expression does not
work the first time! **
More regexp info *used* to be at
http://www.newsbin.com/regexp.htm
I guess that they haven't moved that page yet. Give 'em time.
I like the forum!
This post is a bit lengthy, but this subject CANNOT be explained in few words!
--If I have misstated something, someone please post a revision--