- Home
- Premium Memberships
- Lottery Results
- Forums
- Predictions
- Lottery Post Videos
- News
- Search Drawings
- Search Lottery Post
- Lottery Systems
- Lottery Charts
- Lottery Wheels
- Worldwide Jackpots
- Quick Picks
- On This Day in History
- Blogs
- Online Games
- Premium Features
- Contact Us
- Whitelist Lottery Post
- Rules
- Lottery Book Store
- Lottery Post Gift Shop
The time is now 10:14 am
You last visited
May 10, 2024, 9:14 am
All times shown are
Eastern Time (GMT-5:00)
Simple function to split camelCase words
Published:
The phrase "camel case" is used to describe a common method of naming variables, properties, and methods in a programming language.
It is useful for stringing several words together, while maintaining readability. (More here)
If you ever have the need to split apart the words in a camel case word, here's just about the easiest way to do it (shown in both VB.NET and C#):
SplitCamelCase() - VB
Function SplitCamelCase(ByVal Source As String) As String()
Return Regex.Split(Source, "(?<!^)(?=[A-Z])")
End Function
SplitCamelCase() - C#
string[] SplitCamelCase(string source) {
return Regex.Split(source, @"(?<!^)(?=[A-Z])");
}
Comments
This Blog entry currently has no comments.
Post a Comment
Please Log In
To use this feature you must be logged into your Lottery Post account.
Not a member yet?
If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.
Register