| | |
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 |
Tag cloud for VB.NET
.net .net2008 2008 access advanced application array basic beginner browser button buttons center click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function html images input lib listview map mobile module monitor msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search serial settings shutdown socket sorting sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol validation vb vb.net vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms winsock wpf wrapingcode xml year





