Skip Headers
Oracle® Fusion Middleware Idoc Script Reference Guide
11g Release 1 (11.1.1)
E10726-01
  Go To Documentation Library
Library
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

regexReplaceFirst

Searches a string for a specific pattern using a regular expression to do matching and replaces the first instance with a replacement string. Regular expression constructs can contain characters, character classes, and other classes and quantifiers. See http://java.sun.com for details about the Java API for Class Pattern.

This feature is only available with JVM 1.4 or later versions; this is the default version for Content Server version 7.0 and later.

Type and Usage

Parameters

This function takes three parameters:

Example

The following example returns xyzdef abcdef:

<$regexReplaceFirst("abcdef abcdef","abc","xyz")$>

See Also