Use a character class containing both \w and "-":
/^host,\s*([\w-]+)/
Cheers, Sören
In reply to Re: problem with parsing regex by Happy-the-monk in thread probelm with parsing regex by Anonymous Monk