Paul, It worked! Amazing!
thanks a lot!! Chang --- Paul King <[EMAIL PROTECTED]> wrote: > > You might need to escape the < and > from XML's > point of > view, e.g. use < and perhaps > > > To match the div: > (?s)<div class=\"MstTmeDiv\">.*</div> > > Here (?s) is the dotall modifier making > .* work over multiple lines. > > More info on regex: > http://www.regular-expressions.info/ > > Tools: > regex plugin to IntelliJ > XPathExplorer: http://sourceforge.net/projects/xpe > probably also regex plugins for Eclipse and Firefox > > Paul. > > Chang Su wrote: > > Paul, > > > > see below, > > > >> <replaceFilter regex='(<span > >> class="MstTxt">)[^>]*PST(</span>)' > >> replacement="$1[DATE > REMOVED]$2"/> > > > > > > I tried this and it doe not allow < or > in > > expression. Also my time does not always ends with > > PST, it could be other time zone. > > > > Is there a way to filter out everything between > > "MstTmeDiv" and /div?? > > > > do you have pointer for how to use regular > expression? > > I could not find it in webtest manual. > > > > thanks, > > > > Chang > > > > > >> An example of usage is in the verifyContent > manual > >> page. > >> > >> Paul. > >> > >> Chang Su wrote: > >>> Hi, > >>> > >>> can someone provide me an example on how to use > >>> contentStripper and tagStripper? I could not > find > >> it > >>> in webtest manual pages. It says in > verifyContent > >>> manual, but it is not there. > >>> > >>> what I am trying to do is to filter following > part > >>> from BUI page before the comparison because it > >>> contains dynamic date and time which causes > >>> verifyContents fails. > >>> > >>> ... > >>> <div class="MstTmeDiv"><span class="MstTxt">Last > >>> Update:</span> <span class="MstTxt">Feb 16, > >> 2007 > >>> 3:28:42 PM PST</span> </div>... > >>> > >>> how to use contentStripper or any filter in this > >> case? > >>> thanks, > >>> > >>> Chang > >>> > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

