Regular Expression

  • Thread starter Thread starter Ryu
  • Start date Start date
R

Ryu

I would like to create a regular expression that seperates 2 sentences. For
example,

This is a test. Another test.

Is it possible to seperate them into 2 sentences using Regex in .Net?
 
Hi Ryu
If you mean recognize them as different sentence using the capital letter
or the dot as an indicator , syntax elements in genral (which I guess you
mean ) then yes sure it would be a simple reguler expression. However,
regular expression wouldn't help regonize sentence according to the grammar
rule (or at least it would be very completed thing not as simple for sure).
Either ways, you would use regular expression only for recognition of the
sentence-end but still you have to write your code to manipulate the
string to separate the two sentence.
You can read more about regular expression

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/ht
ml/cpconregularexpressionslanguageelements.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconCOMRegularExpressions.asp
hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

regular expression(Regex) 6
regular expression 1
regular expression 7
Regular Expressions Question 8
PowerPoint Powerpoint Slow Animations 2
Regular Expression? 3
Regular expressions 20
Newbie question about Regex 8

Back
Top