regexp Help

2001-05-30 Thread Kyrytow, Stefan
If someone could please help me. I can't figure out how to use a variable in a regexp. Example. I am writing a script to parse a web log and report on all the hosts in the log. However I have a command line option to exclude a domain from the report. My problem is that I can't figure out how to

Regular Expressions

2001-05-23 Thread Kyrytow, Stefan
Why they are called Regular Expressions, I am not to sure. They should be called Frustrating Expressions. Once again I have what should be a simple problem and yet the solution eludes me. I am creating a prompt that can only accept a number, it works but with one exception, when someone enters a

Beginner Question

2001-05-22 Thread Kyrytow, Stefan
I need a way to return the start of a line up to the first whitespace. eg Browser/Version Platform I want just the Browser/Version information returned. It should be simple, but for some reason the solution eludes me. Any help is appreciated, Stefan