http://qs321.pair.com?node_id=1211959


in reply to Looking for a regular expression for the following pattern.

Groups of at least two alphanumeric characters separated by underscores:

/^(([a-zA-Z0-9]+)_)*[a-zA-Z0-9]+$/