[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Search Engine, Regular Expressions
****** message to minivend-users from Ed LaFrance <edlafrance@printexusa.com> ******
At 12:51 PM 3/7/00 +0100, you wrote:
Gert -
That's a good one! One way you could do it is to specify your keyword
field as the mv_search_field, and set mv_substring_match=yes,
mv_searchspec=a. This would cause the search to return all records who
have a keyword CONTAINING the letter "a". Then you might be able to skip
the ones which don't BEGIN with "a" as follows:
[if value keywords =~ /^a/i]
[item-code]
[item-description]
[item-price]
.
.
.
[/if]
Untested, and my Perl is rudimentary, but it should work, or at least give
you some idea...
- Ed L.
>****** message to minivend-users from "Gert Thiel"
><GertThiel@gmx.net> ******
>
>After carefully reading the docs and faqs, i´m still missing information on
>regular expression searches:
>
>My products database has a keywords field containing some space delimited
>keywords to search for. The web page has a letter bar where visitors can
>click on one letter, e.g. A, to find all products, that have a keyword that
>start with an a.
>
>How does regular expression searching work?
>
>Thanks in advance. Gert.
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
Printex Marking Technologies
12113 Kirkham Rd.
Poway, CA 92064 U.S.A.
858-513-2418
800-982-1928
858-513-2419 FAX
http://www.printexusa.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list