MikeMCSD
asked on
Need to modify a text field with commas.
I have a field "MetaKeywords" that contains values separated by commas, like:
"dome cam, dummy cam, fake Surveillance, fake security, spy, cams, cameras"
I need to do 2 things to it:
1. Remove the space after the commas, like : "dome cam,dummy cam,fake........ "
2. Limit the field to just 5 values separated by commas, like : "dome cam, dummy cam, fake Surveillance, fake security, spy"
How can this be done in C#? thanks
"dome cam, dummy cam, fake Surveillance, fake security, spy, cams, cameras"
I need to do 2 things to it:
1. Remove the space after the commas, like : "dome cam,dummy cam,fake........ "
2. Limit the field to just 5 values separated by commas, like : "dome cam, dummy cam, fake Surveillance, fake security, spy"
How can this be done in C#? thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nicely done! Thanks kauf
NP. Glad to help = )
Open in new window