Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Search with Wild Cards
Message
 
To
14/07/2003 13:39:30
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00809908
Message ID:
00810298
Views:
9
>I need to search thru specific fields using wild-cards or regular expressions. For example, I need to have a query like: find all records where has "12345" ignoring any leading alphabetic characters. Though we all probably know how to do that, VFP won't do that very quickly.
>
>Can anyone recommend a fast text search engine that can handle DBFs and memos and can also do that quickly?
>
>Thanks.

Kenneth,

I haven't tried this with a memo field (yet), but here's an idea that works with normal character fields.
oRE = CREATEOBJECT('VBScript.RegExp')
oRE.Pattern = "(\w+)(\d+)"
SELECT *;
  FROM MyTable;
  WHERE oRE.Test(MyTable.MyMemoFld);
  INTO CURSOR Foo
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform