Replace First - Novell POLICY IN DESIGNER 3.5 - 09-18-2009 Manual

Policies in designer 3.5
Table of Contents

Advertisement

Replace First

Replaces the first occurrence of a regular expression in the enclosed tokens.
Fields
Regular Expression
Specify the regular expression that matches the substring to replace. Supports variable
expansion. For more information, see
Replace With
Specify the replacement string. Supports variable expansion. For more information, see
Section 3.6, "Variable Selector," on page
Remarks
The matching instance is replaced by the string specified in the Replace with field.
For details on creating regular expressions, see:
Java 'Class Pattern' information (http://java.sun.com/j2se/1.4/docs/api/java/util/regex/
Pattern.html)
Java 'Class Matcher' information (java.lang.String) (http://java.sun.com/j2se/1.4/docs/api/
java/util/regex/Matcher.html#replaceAll (java.lang.String))
The pattern options CASE_INSENSITIVE, DOTALL, and UNICODE_CASE are used but can be
reversed by using the appropriate embedded escapes.
Example
The example reformats the telephone number (nnn)-nnn-nnnn to nnn-nnn-nnnn. The rule is from the
predefined rules that come with Identity Manager. For more information, see
Output Transformation - Reformat Telephone Number from (nnn) nnn-nnnn to nnn-nnn-nnnn," on
page
124. To view the policy in XML, see
predef_transformation_reformat_telephone1.xml
predef_transformation_reformat_telephone1.xml).
The Replace First token is used in the Reformat Operation Attribute action.
Section 3.6, "Variable Selector," on page
35.
(../samples/
35.
Section 8.9, "Input or
Verb Tokens 367

Advertisement

Table of Contents
loading

This manual is also suitable for:

Designer for identity manager 3.5

Table of Contents