![](templates/Classic/images/spacer.gif) |
Kronus Wanderer
Joined: 13 Jan 2002 Posts: 76 Location: USA
|
Posted: Sat Apr 26, 2003 3:53 am
String search help |
Is there a function that will return the line that has found exactly what is asked to search for and not everything containing it (%grep).
ie. I have %grep look for Fog, but it returns foggy, foggiest, fogger, etc. I just want it to return the line with fog in it. |
|
|
![](templates/Classic/images/spacer.gif) |
TonDiening GURU
![](images/avatars/35418510744b1b6777b5a3.gif)
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Apr 26, 2003 5:14 am |
Depends on the file you are searching and how "fog" shows up in the patterns.
#FILE 1 "My_Fog_File.txt"
#SH %grep(1,"fog ")
#SH %grep(1,"^Fog")
#CLOSE 1
You might be able to use patterns:
{^string} do not match the specified string
To cut down on the results it finds.
Ton Diening |
|
|
![](templates/Classic/images/spacer.gif) |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|