in reply to regex problem!

Oh, great. Definition by example. And we get one whopping complete example, the other examples just show strings, but not what needs to be matched.

Please consider defining what you want. Usually, once you give a good definition instead of a single example, it's easy to write a regex. By just giving a example, you run the risk you get 10 replies, all different. All will match your example, and all will fail on the other 1000 matches you need to perform. Some examples of regex that will match your example:

/^(.{5})/ /(gedit)/ /(\w+)/ /([^-]+)/ /(.\w{3}.)/

That's the danger of describing your problem with only a single example.

Abigail