V
Vinay Bhushan
Hello Strange problem with regex parsing.
The regular expession search text
217.173.102.220 - foomart [08/Feb/2008:15:36:26 +0000]
regular expression.
(.*[^\s]\s)(-)(\s)(.*[^\s])
i can read the following as
(Give me any thing except the space charecter followed by a space)
217.173.102.220
(Give me - char) -
(Give me space charecter) a whitespace
(Give me any thing except space charecter) expected foomart : ouptput
is foomart [08/Feb/2008:15:36:26 +0000]
can you please let me know how to do this i can write a \w but foomart
can be foo.mart or foo_mart or foo&mart hence i dont want to use a \w
in this case
i just want some thing similar which is ( Give me any thing till the
space)
Regards
Vinay
The regular expession search text
217.173.102.220 - foomart [08/Feb/2008:15:36:26 +0000]
regular expression.
(.*[^\s]\s)(-)(\s)(.*[^\s])
i can read the following as
(Give me any thing except the space charecter followed by a space)
217.173.102.220
(Give me - char) -
(Give me space charecter) a whitespace
(Give me any thing except space charecter) expected foomart : ouptput
is foomart [08/Feb/2008:15:36:26 +0000]
can you please let me know how to do this i can write a \w but foomart
can be foo.mart or foo_mart or foo&mart hence i dont want to use a \w
in this case
i just want some thing similar which is ( Give me any thing till the
space)
Regards
Vinay