Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular expressions multiples files
Message
From
03/06/2008 05:46:33
 
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:
01321236
Views:
13
Hi Steve,

Microsoft's powershell has a built in 'grep' functionality. It will give you strings from every checked file which contains the searched expression. More infos here:

http://blogs.msdn.com/zainnab/archive/2007/07/09/grep-and-sed-with-powershell.aspx

>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
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Reply
Map
View

Click here to load this message in the networking platform