Forum Discussion
2 Replies
Sort By
Hi siddhardha,
First of all, please note that we provide support for AutomatedQA products, not for Microsoft regular expressions syntax used in VBScript and JScript. However, here is what you can try: take the entire string and just remove the problematic word from it. You can use the native Replace method to do this. Please see the following MSDN Library article for more information:
http://msdn.microsoft.com/en-us/library/k9z80300(VS.85).aspxAlso, you can find more information on regular expressions here:
http://autonomicon.blogspot.com/- tristaanogreEsteemed ContributorSomething else that you can do.
My developer here made up a little .NET assembly that put some wrappers around the .NET regular expressions object that allows my to use groupings. With that object, the following regular expression can give me back values based upon the groupings I put in the expressions....*"(?<column>.*)".* row (?<row>\d*) contains .*\((?<value>.*)\) that differs from .* \((?<stored>.*)\).
With that RegEx, I can reference the column, row, value, and stored groupings of the expression individuallyGlobalRegEx.TestCompleteUtils.GetGroupValue(GlobalRegEx.CurrentMatch, 'row').OleValue;
Related Content
Recent Discussions
- 2 hours agoSvetaG