Subversion Repositories XServices

Rev

Rev 88 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
88 brianR 1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE section [
3
<!ENTITY % myent SYSTEM "../entities.ent">
4
%myent;
5
]>
6
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
7
	xmlns:xi="http://www.w3.org/2001/XInclude">
8
	<title>replaceRegEx</title>
9
	<para>Search and Replace using regular expression.
10
	Sample request:
11
<screen><![CDATA[
12
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
13
xmlns:ws="http://ws.xservices.brutex.net">
14
   <soapenv:Header/>
15
   <soapenv:Body>
16
      <ws:replaceRegEx>
17
         <string>Hallo Welt</string>
18
         <search>W.*</search>
19
         <replace>Brian</replace>
20
         <regexflags>ig</regexflags>
21
      </ws:replaceRegEx>
22
   </soapenv:Body>
23
</soapenv:Envelope>
24
]]></screen>
25
	Sample response:
26
	<programlisting language="xml"><![CDATA[
27
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
28
   <soap:Body>
29
      <ns2:replaceRegExResponse xmlns:ns2="http://ws.xservices.brutex.net">
30
         <return>
31
            <string>Hallo Brian</string>
32
            <count>1</count>
33
         </return>
34
      </ns2:replaceRegExResponse>
35
   </soap:Body>
36
</soap:Envelope>]]></programlisting>
37
</para>
38
<para>Allowed regexflags are case-insensitive (i) and global search (g).</para>
39
</section>