| | |
Start of New Senetence
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
I think that would be one way. You would have to assume that the only periods in your input are for sentence endings, not for abbreviations (st. mt. ms.) or numbers (3.14) or email addresses (john.smith@gmail.com).
Barring those annoyances, you could check for the first non-whitespace character after a period and make that a capital.
Barring those annoyances, you could check for the first non-whitespace character after a period and make that a capital.
•
•
Join Date: Jul 2009
Posts: 38
Reputation:
Solved Threads: 1
This requirement seems a bit expensive as far as processing goes. What kind of application are you creating that needs this. Maybe there is another way to handle it.
textbox marketing agency
•
•
Join Date: Aug 2009
Posts: 12
Reputation:
Solved Threads: 4
Well obviously a period(.) indicates the end of a line. You can try it this way:
1) Check for period at the end of a word. So go word by word and check if a word ends with a period, for example "I am a VB.NET programmer." In this case we found "programmer." A word here means a series of characters without a space in between.
2) Now check if the character after the period[.] is a space. If it's a space and followed by an uppercase character then it's safe to assume the end of the line in most cases where the typing is standard.
I'm not sure if you can do this using regular expressions ..
1) Check for period at the end of a word. So go word by word and check if a word ends with a period, for example "I am a VB.NET programmer." In this case we found "programmer." A word here means a series of characters without a space in between.
2) Now check if the character after the period[.] is a space. If it's a space and followed by an uppercase character then it's safe to assume the end of the line in most cases where the typing is standard.
I'm not sure if you can do this using regular expressions ..
Last edited by JadeSimon; Aug 8th, 2009 at 7:19 pm.
![]() |
Similar Threads
- As a newbie, where i should start from in linux? (Getting Started and Choosing a Distro)
- How can i get Quick Launch on start Bar in Windows-NT(workstation) (Windows NT / 2000 / XP)
- where to start with perl? (Perl)
- Start up Menu problems (Windows NT / 2000 / XP)
- mysql start up problem (MySQL)
- IE 6 start page getting changed to about:blank (Web Browsers)
Other Threads in the VB.NET Forum
- Previous Thread: label multiline
- Next Thread: datagridview to excel
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel file-dialog firewall folder ftp google hardcopy image images inline insert listview login math mobile ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print problemwithinstallation project reports" save savedialog searchbox serial server soap sql string table tcp text textbox timer toolbox trim update updown upload useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





