I know that this does not suppused to work, is just for ilustration:<BR>objRE.Pattern="@#"<BR>objRE.Replac e(strMemo,"&#060;input name="&i++&"&#062;")<BR><BR>I want to know if there is a way to add one to the i every time a match is found. I had a code that works using .execute() and a for i=0 to ubound() but i want to optimize it and to learn more.