Tricky regex question
- From: Juan Singh <js@xxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 13:54:48 -0500
Hi,
I need to split words from a sentence that are more than 2 letters. An example sentence is:
This is "very" 'tricky'. I won't be able see it.
I came up with the following regex, but it breaks the word [won't] and I only get the part that is before the single quote.
\b[a-zA-Z]{2,}+\b
My objective is to extract the following words from the example sentence above.
This, very, tricky, won't, able
Thanks.
.
- Follow-Ups:
- Re: Tricky regex question
- From: Daniel Pitts
- Re: Tricky regex question
- From: Oliver Wong
- Re: Tricky regex question
- Prev by Date: Re: 2D lookup table
- Next by Date: Re: 2D lookup table
- Previous by thread: 2D lookup table
- Next by thread: Re: Tricky regex question
- Index(es):
Relevant Pages
|