<< Previous page                  Page 3 of 10               Next Page >>


L A P I S

Constraints



You can make a pattern more specific by adding constraints.

In and contains are two of the most useful constraints. In selects a region matching one pattern only if it is inside a region matching another pattern. For example:
"s" in "Massachusetts"
Try this pattern now by typing it into the Pattern box and pressing Go.
Jared L. Cohon
Carnegie Mellon University
5000 Forbes Ave
Pittsburgh PA 15213

Charles M. Vest
Massachusetts Institute of Technology
77 Massachusetts Ave
Cambridge MA 02139
Notice that the pattern doesn't select every occurrence of the letters in the page. Instead, it only selects s if it appears inside Massachusetts.

Similarly, contains selects a region matching one pattern only if it contains a region matching another pattern. For example:
ZipCode contains "5"
Try this pattern now by typing it into the Pattern box and pressing Go. You should see that only one of the ZIP codes in the address list is selected.


<< Previous page                  Page 3 of 10               Next Page >>

Go to the LAPIS home page.
Send comments or questions to Rob Miller, (rcm@lcs.mit.edu)
Copyright © 2003 - Massachusetts Institute of Technology. All Rights Reserved.