String 3 (a verbatim string): "Come visit us at http://www.LibertyAssociates.com"
String 4: a concatenation of strings 1 and 2
String 5: "world"
String 6: a copy of string 3
Once you have the strings created, do the following:
Output the length of each string.
Output the third character in each string.
Output whether the character "H" appears in each string.
Output which strings are the same as string 2.
Output which strings are the same as string 2, ignoring case.
Exercise 2-2 .
Take the following string:
We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.
and use a regular expression to split the string into words.