Find last comma in string

S

shapper

Hello,

I need to replace the last comma in a string by " and ". How can I do
this?

Thanks,
Miguel
 
F

Family Tree Mike

shapper said:
Hello,

I need to replace the last comma in a string by " and ". How can I do
this?

Thanks,
Miguel


Does your list potentially contain currency strings? If so, I hope that one
of your test strings is "$3,000.00, $4,000.00, $5,000.00".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

String. Get words ... 4
Double to String. Force the use of Dot 9
Regular expression 4
Don't add comma 2
List<String>. Replace 15
CSV to List 7
String Replace 3
newbie problem with if-else 11

Top