|
-
Jul 15th, 2011, 04:37 AM
#1
Thread Starter
Hyperactive Member
can we do this in regular expression?
have a sentence:
I have a test.
Now, I want to know how many 2-word group in this sentence. I can do this using: New Regex("\b([a-zA-Z]+\s+(?=[a-zA-Z]+))\b") to get this #.
Is there a way to capture these 2-word groups?
in this example it should be:
I have
have a
a test
can we do this in regular expression directly?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|