Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular expressions multiples files
Message
From
03/06/2008 05:33:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01321170
Message ID:
01321234
Views:
9
>Actually, I think I should give a better example. Here is what the contents of
>each file look like. This is the file "plants.d" and all the files
>look the same, inside.
>
>What I want to search within is either the #wd
>(this is a word in a foreign language.)
>
>Or I want to search #gl which is the #wd but in English, And I need to be
>able to do this across multiple files. I am just wondering if there
>is a regular expression search that is all setup to do this
>
>#B
>#lg DC
>#wd rros kastii (Sp.)
>#gl wild rose
>#E
>
>#B
>#lg DC
>#wd epsii
>#mp oOp+si:+
>#gl creosote bush | chaparral
>#E
>
>#B
>#lg DC
>#wd pshii
>#mp p+sSi:+
>#gl greasewood
>#E

Steve,
I don't know i there is a RegExp that is already setup to do that. However as I see it you have a predefined pattern in that file where each section starts with #B and ends with #E. You could use strextract to get those sections and put the content into fields like lg,wd,gl,mp ... in a cursor. Searchingin cursor would be much easier then (but of course I don't know what you would do with it).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform