Hi bobopico-ga,
I rewrote the expression from scratch and came up with the following:
Regex(@"\b[A-Za-z]+\b(?!\()\b(?!"")");
The above gives the correct results for the test string you have provided.
You can test this regex with other test strings, and post a request
for clarifications if anything needs to be modified.
Hope this helps.
Regards,
theta-ga |
Request for Answer Clarification by
bobopico-ga
on
13 Aug 2006 09:53 PDT
So the following string doesnt seem to work:
"Apple 10 banana ""peas corn"", ""carrots""., 1noword sum( kiwi
""potato"" decode(sum(strawberry))"
it returns peas although it is in a quoted string. (the double quotes
are actually in C# translated to a single quote).
Rahul
|
Request for Answer Clarification by
bobopico-ga
on
13 Aug 2006 13:55 PDT
One additional clarification is the _ are accepted as part of a work
so AVG_COST should be returned as a word. The initial posted
expression does that correctly as well, but I think when it was
rewritten it no longer does that.
|
Clarification of Answer by
theta-ga
on
16 Aug 2006 22:25 PDT
Hi bobopico-ga,
I'm sorry I was unable to respond earlier dues to some issues with
my Internet access. I will be posting the correct solution soon.
My apologies for the delay.
Regards,
Theta-ga
|
Request for Answer Clarification by
bobopico-ga
on
18 Aug 2006 20:23 PDT
Thanks for the update, I had no idea how long to wait. I will make
sure to send a note to adjust the rating once the right answer is
posted. Thanks again for your time!
|