regExp Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gd77
Forum Newbie
Posts: 20
Joined: Sat Feb 26, 2011 6:11 pm

regExp Help

Post by gd77 »

Hello:

I m failing to match word OR word1_word2 on boundry...
\b[a-z]|[a-z]+[_a-z]]\b
b[a-z]|[(a-z)+(_a-z)]{1,}\b <--- valid with _word

thanks.
Post Reply