hi,
i need a regular expression which would match the exact word in a given
string.
for ex
my input is as below and my pattern is .ocx
".docx .DOCM .DOTX .DOTM"
i want only .ocx string to be matched, if any..
currently, it matches docx also....which i dont want...
what is the appripriate regex pattern..
do help out
Luc E. Mistiaen - 16 Jun 2007 04:32 GMT
dot (.) matches everything, so use "[.]ocx" instead of of ".ocx" (variants:
"\\.ocx" or @"\.ocx").
/LM
> hi,
>
[quoted text clipped - 12 lines]
>
> do help out