xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_IsRegExString()

Checks if a character string is a compiled regular expression.

Syntax

HB_IsRegExString( <cString> ) --> lIsRegExComp

Arguments

<cString>
<cString> is a character string to test.

Return

The function returns .T. (true) if the passed string is a compiled regular expression, otherwise .F. (false) is returned.

Description

All regular expression functions and operators can process character strings containing literal regular expressions or compiled regular expressions. A literal regular expression can be compiled with HB_RegExComp() to speed up pattern matching. HB_IsRegExString() detects if a character string is a compiled regular expression.

Info

See also:HAS, HB_RegEx(), HB_RegExComp(), LIKE
Category: Regular expressions , xHarbour extensions
Source:rtl\regex.c


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe