Search these areas:
Help
Support Forums
Product Info



Introduction
DataWeb: What's New
Creating an Application
The DataWeb Designer
Application Management
Data Tables
Data Tables
Views
Templates
Components
Data Analysis
Members
Security
Importing
Exporting
FTP
JavaScript
Object Model
JavaScript Objects
-Array Object
-Date Object
-Error Object
-Math Object
-Number Object
-Object Object
-RegExp Object
RegExp Patterns
RegExp Flags
exec
test
-String Object
General Scripting Objects
Data Access Objects
File Access Objects
Http Client Objects
Security and Membership Objects
Document Object Model (DOM)
Error Descriptions
Object Model Extensions
Full-Text Search
Domain and Email Hosting
HotBlock Modules
Account Management
Glossary
New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

DataWeb User's Guide

RegExp Object
Using the RegExp (regular expression) object and it's associated methods allows you to perform powerful pattern-matching searches within strings.

Constructor

[new] RegExp ( RegExp pattern [,RegExp flags] ) A Regexp object instance is constructed and returned or an exception is thrown.

Instance Methods

exec Searches a string for a specified value and returns the found value(s) and position.
test Returns a true or a null after performing a search for a specified value.

Example
var  pattern= new RegExp('is','ig');
response.write(pattern.exec('Is this all there iS?\n or IS there more?'), '\n');
response.write(pattern.exec('Is this all there iS?\n or IS there more?'), '\n');
response.write(pattern.exec('Is this all there iS?\n or IS there more?'), '\n');
response.write(pattern.exec('Is this all there iS?\n or IS there more?'), '\n');

//output:
//Is
//is
//iS
//IS
Related Topics

RegExp Patterns , RegExp Flags , RegExp.exec() , RegExp.test()
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us