in reply to Re: search for exact string
in thread search for exact string

I copy pasted if($line=~m/\b$toFind(?=^\w\.+|$)/i) and it worked for my requirement... Thank you so much :) I will be thankfull if you also can explain how it work?

Replies are listed 'Best First'.
Re^3: search for exact string
by roboticus (Chancellor) on Apr 24, 2019 at 12:42 UTC

    Anonymous Monk:

    If you'd just read the other reply to the node you've resurrected, it would tell you what the regular expression means.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.