Hi Friends,
I want a VBA Macro to find the value of the string ("100 X 250 X 500 mms") is matching with a pattern.if it is not matching with the pattern is it possible to detect in which part it is not matching and how to correct it?
For Example - > Original String Value is - > 100 X 250 X 500 mms
Pattern Matching using RegEx is some thing like this - > ^\d{1,4}\ \X\d{1,4}\ \X\d{1,4}\ \[a-z] {1,3}
it is easier to match the string with the pattern and find out whether the string is correct or not.
If the value of the string is not correct then how to find which part is wrong and how to correct it? (Is there any specific object and properties are there in RegEx)
If there is some other string (For Ex. \or ! or * etc.) other than numbers and characters and space it should give a message "Invalid Stirng".
Is is possible to find and replace using RegEx?
If the string contains proper value but small mistakes like - > this "100X250X500 mms" or
100X 250 X500 mms occured then it should detect the mistake and correct the value using VBA Macro.
Kindly reply to this question ASAP.
Thanks and Regards,
Mahesh.