+49 228 5552576-0


info@predic8.com

regExReplacer

Description

Runs a regular-expression-replacement on either the message body (default) or all header values.

Can be used in

spring:beans, if, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport

Syntax

				<regExReplacer regex="string" replace="string" target="header|body" />
			
Listing 1: regExReplacer Syntax

Sample

				<serviceProxy port="2000">
					<regExReplacer regex="Hallo" replace="Hello" />		
				</serviceProxy>			
			
Listing 2: regExReplacer Example

Attributes

Name Required Default Description Example
regex true - Regex to match against the body. Hallo
replace true - String used to replace matched parts. Hello
target false body Whether the replacement should affect the message body or the header values. Possible values are body and header. header

Copyright © 2008-2017 predic8 GmbH
Koblenzerstr. 65, 53173 Bonn, Tel. +49 (228) 555 25 76-0