Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a RegExp which matches multi-words in text

also

RegExp which matches verb,noun,preposition in text
Posted

1 solution

Until I reached the last part of your question, I though "that's easy - a perfect task for a Regex".

But it isn't. Regex is all about pattern matching, not lexical analysis, which is what you need to accurately match verb, noun, preposition in normal text.

Google for Lexical Analysis English[^] instead - but be prepared for some fairly serious reading!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900