>>>>> "D" == Dirk Meijer <hawkman.gelooft / gmail.com> writes:

D> it's still not working for me :-(

 Give an example of what you are trying to match

D> !~ doesn't work anyway, because it only returns true or false, when i need
D> $& to be set.
D> i think this one is proper: /^:?[\w\/'"$@#]+/
D> but what would be the opposite of that?

 It's really depend on what you want to match. The opposite seems

   * it must not begin with one of the characters :\w/'"$@# (the empty
     string is in this case)

        OR

   * begin with one : not followed by one of the characters \w/'"$@#


Guy Decoux