Browse code

textops: docs update to state regex params expect posix format

(cherry picked from commit b19aab7fe00f72d0c9e54a7a106ec7a065a3d02b)
(cherry picked from commit a78acd8f40ed38b161a075bef74febd93acb092c)
(cherry picked from commit e4eda3f5131e2788670a1f9f8342a2889e9b1107)

Daniel-Constantin Mierla authored on 05/10/2021 07:56:33
Showing 1 changed files
... ...
@@ -19,9 +19,15 @@
19 19
 		The module implements text based operations over the SIP message
20 20
 		processed by &kamailio;. SIP is a text based protocol and the module
21 21
 		provides a large set of very useful functions to manipulate the
22
-		message at text level, e.g., regular expression search and replace,
23
-		Perl-like substitutions, checks for method type, header presence,
24
-		insert of new header and date, etc.
22
+		message at text level, e.g., regular expression search, replace
23
+		or substitutions, checks for method type, header presence,
24
+		insert of new header and date, string comparisons, multi-part body
25
+		operations, etc.
26
+	</para>
27
+	<para>
28
+		If not stated otherwise, the regular expressions parameters for search,
29
+		replace or substitute have to be in POSIX format. For PCRE regular
30
+		expression matching, see the pcre or dialplan modules.
25 31
 	</para>
26 32
 	</section>
27 33
 	<section>
... ...
@@ -555,7 +561,7 @@ replace_hdrs_str("&kamailio;", "&kamailio; SIP Proxy", "a");
555 561
 		<function moreinfo="none">subst('/re/repl/flags')</function>
556 562
 		</title>
557 563
 		<para>
558
-		Replaces re with repl (sed or perl like).
564
+		Replaces re with repl.
559 565
 		</para>
560 566
 		<para>Meaning of the parameters is as follows:</para>
561 567
 		<itemizedlist>
... ...
@@ -692,7 +698,7 @@ if (subst_user('/(.*)3642$/$avp(user_prefix)\13642/')){$
692 698
 		<function moreinfo="none">subst_body('/re/repl/flags')</function>
693 699
 		</title>
694 700
 		<para>
695
-		Replaces re with repl (sed or perl like) in the body of the message.
701
+		Replaces re with repl in the body of the message.
696 702
 		</para>
697 703
 		<para>Meaning of the parameters is as follows:</para>
698 704
 		<itemizedlist>
... ...
@@ -732,7 +738,7 @@ if ( subst_body('/^o=(.*) /o=$fU /') ) {};
732 738
 		<function moreinfo="none">subst_hf(hf, subexp, flags)</function>
733 739
 		</title>
734 740
 		<para>
735
-		Perl-like substitutions in the body of a header field.
741
+		Substitutions in the body of a header field.
736 742
 		</para>
737 743
 		<para>Meaning of the parameters is as follows:</para>
738 744
 		<itemizedlist>