in reply to Problem with regex

Hi,
and welcome to the monastery!

I'm afraid I don't really understand your question. You talk about "admin" and "admin/1.1", but in your example code (++nave448 for providing it), the search string is "string to be matched". What are you actually looking for here?

Regards,
svenXY

Replies are listed 'Best First'.
Re^2: Problem with regex
by nave448 (Novice) on Sep 16, 2008 at 11:25 UTC
    Hi,
    thanks for the reply
    "string to be matched" is the search string
    for example if i give it as admin/1.1 it gives me the file that contains the string admin/1.1
    But if i give it as admin it also gives me the same file
    I just want to match the whole word admin/1.1 not the part admin
    regards, Naveen