@@ -16,16 +16,16 @@ Parameters
1616: The attribute in which the search is performed.
1717 This parameter is REQUIRED and the filter will throw an exception if it is not set. The filter will
1818 stop quietly if the attribute specified here is empty or not found.
19-
19+
2020` pattern `
2121: The pattern to look for inside the subject. Supports full Perl Compatible Regular Expressions (PCRE).
2222 This parameter is REQUIRED and the filter will throw an exception if it is not set.
23-
23+
2424` replacement `
2525: The value used to replace the match. Back references are not supported.
2626 This parameter is REQUIRED, except when using the ` %replace ` or ` %remove ` options. If ` %replace ` is used and
2727 ` replacement ` is not set, then the match is used as a replacement.
28-
28+
2929` target `
3030: The attribute where the replaced value will be placed.
3131 This parameter is OPTIONAL, and if not set, ` subject ` is used as ` target ` .
@@ -43,7 +43,7 @@ Parameters
4343: Indicates whether the altered values must be merged with the target attribute values. The default
4444 behaviour is to overwrite the target attribute completely.
4545 This parameter is OPTIONAL.
46-
46+
4747Examples
4848--------
4949
@@ -64,7 +64,7 @@ Change the domain on the `mail` attribute (when new domain is known):
6464 'pattern' => '/(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,6}$/',
6565 'replacement' => 'newdomain.com',
6666 ],
67-
67+
6868Set the eduPersonPrimaryAffiliation based on users' distinguishedName:
6969
7070 10 => [
@@ -74,7 +74,7 @@ Set the eduPersonPrimaryAffiliation based on users' distinguishedName:
7474 'replacement' => 'staff',
7575 'target' => 'eduPersonPrimaryAffiliation',
7676 ],
77-
77+
7878Normalize the eduPersonPrimaryAffiliation:
7979
8080 10 => [
@@ -84,7 +84,7 @@ Normalize the eduPersonPrimaryAffiliation:
8484 'replacement' => 'student',
8585 '%replace',
8686 ],
87-
87+
8888Get the domain of the emailaddress and put it in a separate attribute:
8989
9090 10 => [
@@ -109,7 +109,7 @@ unless another attribute meets a condition:
109109 'target' => 'myAttribute',
110110 '%replace',
111111 ],
112-
112+
113113Remove internal, private values from eduPersonEntitlement:
114114
115115 10 => [
0 commit comments