in reply to Re^2: Problem with RegEx & various "endings"
in thread Problem with RegEx & various "endings"

Actually, if it really is _so simple_ and the rule is "use the first word" you don't need to specify the stop characters, greediness of the '+' will do the job for you:
$teststring =~ /(\w+)/ ...

Replies are listed 'Best First'.
Re^4: Problem with RegEx & various "endings"
by timesink (Initiate) on Jul 01, 2008 at 15:08 UTC
    yes you're right :(
    but keep in mind that I just started to work with RegEx's (as you have noticed by now ;P) so I don't know every possibility even with a documentation at hand.It's by far the most confusing thing I encountered since I started with programming ;) (and there are still much more confusing things out there *_*)

    Thanks for your hint :)