Contact | Privacy | Datenschutzerklärung | Impressum

containsRE, containsCaseRE

Format: containsRE ( string, pattern [pos] )
Format: containsCaseRE ( string, pattern [pos] )

Purpose: Looks whether a regular expression pattern is contained in a string. The pcre library is used for processing the regular expressions and the exact syntax and semantics is documented there. (1 2)

The containsCaseRE() function works very similar but is not case sensitive.

If the optional pos argument is given, it must be an integer denoting a character position in the string. Search then starts at this position.

Return Values: Returns true if and only if string contains the pattern.

Example 1:

input:resulting output:
<? containsRE("Hello World","Hello")>true
<? containsRE("Hello World","[a-c]")>false
<? containsRE("Hello World","[d-f]")>true
<? containsRE("Hello World","Hello",1)>false

Example 2:

<if containsCaseRE("One two three four five",
    > Four letter word found. <
    > No four letter word found. <
resulting output:
 Four letter word found. 

See Also: indexRE(), indexCaseRE(), substRE(), substallRE().

This page was dynamically generated by the web application development tool RADpage of H.E.I. H.E.I. provides support, tools, and services like Webdesign in Mannheimm, the HTML/CSS 3D WebGL Animation Library taccgl, 3D Webdesign, and 3D Product Configurator (3D Produkt Konfigurator in German).

Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display.

© 1996-2024 H.E.I. All Rights Reserved.

Component Guide
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    heitml Tags
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  New Features
  heitml 1
User Guide
Contact / Impressum