Re: Reg Exp and sentences
- From: Sherm Pendley <sherm@xxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 06:02:21 -0400
kjhjhjhjadsasda@xxxxxxxxxxxxxx writes:
> Im trying to get a solid regular expression that identifies sentences
> from a text chunk and that throws away anything that isnt.
>
> Example:
>
> pjkoqwe () asdkj() asdasd...... dasdkasjk ** This is a proper sentence,
> right here. Hejrkjlekk werkwe wer werjlkj! Wedkljew erewrkjkj?
> Wwlkjfdskjsdflk sdlkfjsdsd sdflkjsd sdfkjsdf, sdfklj sdflkjsdf lksdfj.
> 1223 sd dskj() sdkjas | asd| |sdasda sadkjasd
>
> Would result in:
>
> This is a proper sentence, right here. Hejrkjlekk werkwe wer werjlkj!
> Wedkljew erewrkjkj? Wwlkjfdskjsdflk sdlkfjsdsd sdflkjsd sdfkjsdf,
> sdfklj sdflkjsdf lksdfj.
>
> Eg something that looks for a length more than say 5 words, that starts
> with an upper case letter, can include ,()- and space and ends with an
> .!?
What have you tried so far?
If you need help getting started, try <http://learn.perl.org> for lots of
useful tutorials, book suggestions, and so forth.
Oh, and don't forget to read this group's guidelines, if you haven't yet
done so - lots of tips and useful links there too.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
.
- References:
- Reg Exp and sentences
- From: kjhjhjhjadsasda
- Reg Exp and sentences
- Prev by Date: Reg Exp and sentences
- Next by Date: FAQ 4.62 Why don't my tied hashes make the defined/exists distinction?
- Previous by thread: Reg Exp and sentences
- Next by thread: Re: Reg Exp and sentences
- Index(es):