Do it in a loop: Dim rm As RegexMatch rm=r.search(strinput) while rm<>Nil <do whatever you have to do> rm=r.search(strinput,rm.SubExpressionStartB(0)+LenB(rm.SubExpressionString(0))) wend
HTH -- dda libcurl4RB, [S]FTP transfers made easy http://sungnyemun.org/?q=node/8 RBDeveloper Columnist, "Beyond the Limits" http://rbdeveloper.com On 2/26/06, vvor <[EMAIL PROTECTED]> wrote: > thank you, this works. but what if i need access to $1, $2, etc., > outside of the r.replace? i'd like to process the replacement pattern > a bit based on conditions prior to the replacement. this is done with > regexmatch, yes? but that only matches once? > > iow, i want to remember if i match a certain thing so i can alert > other code so that i can influence my replacement patterns a bit. > > sorry if i'm dense. > > -vv
_______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
