Hi. Little continuation.

Using
Code:
$regex($1-,/(?:^|\s)(?:Lion|Tiger)\b/g)


How do I make it accept the word if there's anything else next to it except for "\s Matches the space bar character : $regex(test this\s)" (Space bar). What if I want it to match "-Tiger" as well?

Thanks!

Edit: What would help me the best would probably be if someone could break down exactly how that regex works as well (the one I posted) so I can learn something! smile

Last edited by lindenkron; 14/01/14 12:47 AM.