Rex expression when indexing

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Rex expression when indexing

Post by Thunderstone »



I would appreciate some help formulating a rex expression for indexing
a webinator database.

Each record had an id number (referenced inside the record) of the form
TCxxxxxx, where x is a digit, i.e. TC followed by 6 numbers.

I would like to index the id numbers and the text.
gw -dtcdb -k"\alpha{2}\digit{6}" -k"\alpha{2-30}" -index
works, but I would like to replace the alpha{2} with "TC".
Can it be done? If so how?


---------------------------------------------------------------
Larry Rudner rudner@ericae.net
ERIC Clearinghouse on 800 464-3742
Assessment and Evaluation 301 405-7449
Shriver Laboratory
College Park, MD 20742 http://ericae.net


User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Rex expression when indexing

Post by Thunderstone »




gw -dtcdb -k"\RTC=\digit{6}" -k"\alpha{2,30}" -index

The "\R" is to respect case, instead of the default of ignore. The "="
means "exactly one of". The same as "{1}" .

Your repetitions for the other expression should use a comma, not hyphen:
-k"\alpha{2,30}"

Remember to -unindex before using -index with new expressions.


Post Reply