troubleshooting Question

Formatting a String in C#

Avatar of Tony_k
Tony_k asked on
.NET ProgrammingC#Editors IDEs
17 Comments1 Solution1303 ViewsLast Modified:
I want to write a property in C# to test the format of a string called Vcode:
The following format are valid: M1M1M1, M1M M1M(for this one I I have to create a function to eliminate the space between M1M and M1M), M1M-M1M (for this one I have to eliminate the dash - and make it like M1M1M1)
and this property will be valid for the above and not valid for the format below:
 // Not Valid: M1M1M1A, M1M-M1MA, 73120, MMM-111
ASKER CERTIFIED SOLUTION
jamesrh

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros