<div dir="ltr"><div>Hello There,<br></div>I'm trying using the following regexp on re.subst function:<br><br><div><div style="margin-left:40px">(.*)Calling-Name: ?([\W|0-9A-Za-z_]{5,500} ?[<>:@.|0-9A-Za-z_]{5,500})(.*)$<br></div><br></div><div>And the string used for match is the following:<br><br><div style="margin-left:40px">#015#012Calling-Name-Status: available#015#012Calling-Name: "josé" <<a href="mailto:sip%3A5555555552@10.10.10.10">sip:5555555552@10.10.10.10</a>>#015#012Presentation-Indicator: allowed#015#012<br clear="all"></div></div><div><div><br></div><div>The Kamailio re.subst function is constructed as the following:<br><br><div style="margin-left:40px">$sht(cnam=>$ci::calling_name)=$(var(rb){re.subst,/(.*)Calling-Name: ?([\W|0-9A-Za-z_]{5,500} ?[<>:@.|0-9A-Za-z_]{5,500})(.*)$/\2/s});<br><br></div>The issue here is that this re.subst function doesn't match the accents, I have tested this regex on <a href="http://regex101.com">regex101.com</a> and it does match. My question is how i can get the same result with re.subst?<br></div><div>Anyone can help?<br><br></div><div>Thank you<br></div><div>Regards<br></div><div>-- <br><div class="gmail_signature"><div>José Seabra</div></div>
</div></div></div>