Hello There,
I'm trying using the following regexp on re.subst function:

(.*)Calling-Name: ?([\W|0-9A-Za-z_]{5,500} ?[<>:@.|0-9A-Za-z_]{5,500})(.*)$

And the string used for match is the following:

#015#012Calling-Name-Status: available#015#012Calling-Name: "josé" <sip:5555555552@10.10.10.10>#015#012Presentation-Indicator: allowed#015#012

The Kamailio re.subst function is constructed as the following:

$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});

The issue here is that this re.subst function doesn't match the accents, I have tested this regex on regex101.com and it does match. My question is how i can get the same result with re.subst?
Anyone can help?

Thank you
Regards
--
José Seabra