in reply to regular expression not matching

So you want to figure out why, is that your question?

Can you explain what  ([\w+\_\-]) means?

Replies are listed 'Best First'.
Re^2: regular expression not matching
by ghosh123 (Monk) on Mar 13, 2013 at 06:38 UTC

    Ooops ... I am sorry, I just pasted the wrong code.
    Actually I have been using this
    It was working fine as long as there was no _ and - But now , how it is to be changed to take care of '_' and '-' ?

    if(/^Users of (\w+):\s+\(Total of ([0-9]+) licenses issued;\s+Total of + ([0-9]+) (licenses|license) in use/)

        Yes , I am not able to figure out. All I understand is (\w+) is not matching Galaxy-FP or so.
        Please help me with the solution.

        Well, I told you, that was wrongly pasted. I was trying with something and did not clean my code before pasting. So it was.
        Basically that means some word followd by a '_' and '-'.
        But yes, that is not going to work , it was wrong.