Page 1 of 1

About RegularExpression replace \1

Posted: Sat Sep 17, 2011 9:12 am
by shu7734
a.s="fsvFfs123fkasdjfk467566"
CreateRegularExpression(0,"(Ffs)(\d)")
ReplaceRegularExpression(0,a.s,"\1")

i want the result is

Ffs123

cann't suport \1\2 ?

example

Code: Select all

 
 If CreateRegularExpression(0, "(abC)(.+)")
    Result$ = ReplaceRegularExpression(0, "abC ABc zbA abc", "\1")
    Debug Result$ ; Will print "--- ABc --- abc"
  Else
    Debug RegularExpressionError()
  EndIf
i want debug output
abC