I would like to know how to get the number of occurances of a specific character within a string.
For ex. var str = "Name;Title;Year;Author;Rating"
How do I get the number of times that the ";" appears in that string.
Thanks in advance.
|
|
Results 1 to 6 of 6
Thread: check string for a characterThreaded View
Thread InformationUsers Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) Tags for this Thread |
|
Bookmarks