> I am trying: > > <replaceregexp file="index.htm"> > <regexp pattern="\(*"CUSTOM_APPL_REV" VALUE = "[A-Z0-9]"\)"/> > <substitution expression="\1 kalle"/> > </replaceregexp> > > but still no match.
Change "[A-Z0-9]" to "[A-Z0-9]+". Also, your parentheses are still such that you will be appending ""kalle"" to the entire string. You can simplify the logic a bit since the first part of the match will not change. <replaceregexp file="index.htm"> <regexp pattern="#34;CUSTOM_APPL > > _REV" VALUE = "[A-Z0-9]"\)"/> > <substitution expression="#34;CUSTOM_APPL > > > > _REV" VALUE ="kalle""/> > > </replaceregexp> > This could be further clarrified by putting everything up to ""kalle"" into a property. This is untested but should work. Greg