G
Guest
Not sure if this is the right forum for this question but couldn'd find
another newsgroup.
I am new to Regular expressions and would like help in deciding which
pattern allows me to split a string into sets of words based on capital
letter.
For e.g. if i have a string "FirstnameLastname" I would like the result to
return me Firstname and Lastname.
The other conditions of the input string are
1) If whitespace exists, do not return a match, instead return the original
string.
2) The first character will always be a capital letter.
3) There may or may not be more than one word in the input string.
Any help will be greatly appreciated.
Thanks.
another newsgroup.
I am new to Regular expressions and would like help in deciding which
pattern allows me to split a string into sets of words based on capital
letter.
For e.g. if i have a string "FirstnameLastname" I would like the result to
return me Firstname and Lastname.
The other conditions of the input string are
1) If whitespace exists, do not return a match, instead return the original
string.
2) The first character will always be a capital letter.
3) There may or may not be more than one word in the input string.
Any help will be greatly appreciated.
Thanks.