Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Kronus
Wanderer


Joined: 13 Jan 2002
Posts: 76
Location: USA

PostPosted: 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.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net