I do have a text where I want to replace a part starting en ending with: (AFSPRAAK)
I tryed this:
if ($record->{'cust_plan'} =~ /(AFSPRAAK) $r_in->{'day'}-$r_in->{'mo
nth'}-$r_i
n->{'year'
} $r_in->{'hh_start'}:$r_in-
>{'mm_star
t'} $r_in->{'tot mm_end'}:$r_in->{'hh_end'}
: (.*)(AFSPRAAK)/) {
$record->{'cust_plan'} =~ s/(AFSPRAAK) $r_in->{'day'}-$r_in->{'mo
nth'}-$r_i
n->{'year'
} $r_in->{'hh_start'}:$r_in-
>{'mm_star
t'} tot $r_in->{'mm_end'}:$r_in->{
'hh_end'}:
(.*)(AFSPRAAK)//g;
}
where the part (.*) is alway different and not importent!!
When the text between (AFSPRAAK) .... (AFSPRAAK) exist then that part has to be removed!!
What am I doing wrong??
Michel
Start Free Trial