impl xpath regex text match beginpos endpos nofgroups cisource strsource charsource match clone match ma match this.nofgroups ma.setnumberofgroups this.nofgroups this.cisource ma.setsource this.cisource this.strsource ma.setsource this.strsource this.nofgroups ma.setbeginning this.getbeginning ma.setend this.getend ma setnumberofgroups oldn this.nofgroups this.nofgroups oldn oldn oldn this.beginpos this.endpos this.beginpos this.endpos setsource ci this.cisource ci this.strsource this.charsource setsource str this.cisource this.strsource str this.charsource setsource chars this.cisource this.strsource this.charsource chars setbeginning index this.beginpos index setend index this.endpos index getnumberofgroups this.nofgroups illegalstateexception this.nofgroups getbeginning index this.beginpos illegalstateexception index this.nofgroups index illegalargumentexception this.nofgroups index this.beginpos index getend index this.endpos illegalstateexception index this.nofgroups index illegalargumentexception this.nofgroups index this.endpos index getcapturedtext index this.beginpos illegalstateexception index this.nofgroups index illegalargumentexception this.nofgroups index ret begin this.beginpos index this.endpos index begin this.cisource ret reutil.substring this.cisource begin this.strsource ret this.strsource.substring begin ret this.charsource begin end-begin ret