in reply to Re^4: Need help with a nested IF statement
in thread Need help with a nested IF statement

Can you tell me what \b is looking for when you write "/\bnet"?

To prevent it from matching "foonet"

What is considered a Word boundry?

Between a \W and a \w,
between a \w and a \W,
between the start of string and a \w, and
between a \w and the end of string.

As a regex pattern:

/(?<=\w)(?!\w)|(?<!\w)(?=\w)/

Also your split line, what is it doing logic-wise.

It splits between a \n and a \w.