- TIBCO BusinessEvents®
- Standard
- String

# String.regionMatches()

## Signature

`boolean regionMatches (boolean ignoreCase, String s1, int offset1, String s2, int offset2, int length)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Tests if two identified string regions are equal.

## Parameters

Name | Type | Description
--- | --- | ---
`ignoreCase` | `boolean` | if true, ignore case when comparing characters.
`s1` | `String` | A String to test for region matches.
`offset1` | `int` | The starting offset of the subregion in the String `s1`.
`s2` | `String` | Second String to test for region matches.
`offset2` | `int` | The starting offset of the subregion in the string `s2`.
`length` | `int` | The number of characters to compare.

## Returns

Type | Description
--- | ---
`boolean` | true if the specified subregion of string s1 matches the specified subregion of the string s2; false otherwise. Whether the matching is exact or case insensitive depends on the ignoreCase argument.

## Cautions

none

## See Also

java.lang.String#regionMatches