Microsoft
Software
Hardware
Network
Question : String Replace is not working properly because of my string.
Hello Experts.
I am using the string replace methoud to extract the current number out of a string like:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ...
and when I replace "1," with "", I get:
2, 3, 4, 5, 6, 7, 8, 9, 10, 112, 13, 14, 15, 16, 17, 18, 19, 20,
It removes the first "1," correctly but it also removes the second "1," from the number "11," as it also has a comma next to it.
Any ideas on how to clarify which string to replace.
This is quite troubling as the program is doing what I need but not exactly.
Thanks.
Answer : String Replace is not working properly because of my string.
If you are using standard search and replace... it could be tricky - you may need a macro for that, along the same idea (add "something" to make sure each element is wrapped in 2 commas, replace with 1 comma, remove "something").
Random Solutions
Accessing GPT drive on windows 7 from Windows XP
Edge Sync Fails
Internet problems after Domain Controller Upgrade 2008 Server R2 x64
Outlook calendar issue. Some users who i did not share the calendar in local or exchange. Are able to see my calendar.
Create a list of users in Active Directory whose account has been locked out for 90 days
Iseries OSV5R4 PM eserver iSeries telephone number
Windows 2003 Server Restart Errors
Group policy updates causes screen to flicker
Would you recommend Draytek Vigor 2820 for site-to-site VPN
ASP.NET Membership minRequiredNonalphanumeric
Characters
Problem