please dont rip this site
Microsoft® JScript™
Regular Expression Object
 Language Reference 
Version 3 

See Also                   Methods                   Properties


Description
Contains a regular expression pattern.
Syntax 1
var regularexpression = /pattern/[switch]
Syntax 2
var regularexpression = new RegExp("pattern",["switch"])

The regular expression object syntax has these parts:

Part Description
pattern Required. The regular expression pattern to use. If you use Syntax 1, delimit the pattern by "/" characters. If you use Syntax 2, enclose the pattern in quotes.
switch Optional. Enclose switch in quotes if you use Syntax 2. Available switches are:
  • i (ignore case)
  • g (global search for all occurrences of pattern)
  • gi (global search, ignore case)
  • Remarks
    Regular Expression objects store patterns used when searching strings for character combinations. After the Regular Expression object is created, it is either passed to a string method, or a string is passed to one of the regular expression methods. Information about the most recent search performed is stored in the RegExp object.

    Use Syntax 1 when you know the search string ahead of time. Use Syntax 2 when the search string is changing frequently, or is unknown, such as strings taken from user input.

    The pattern argument is compiled into an internal format before use. For Syntax 1, pattern is compiled as the script is loaded. For Syntax 2, pattern is compiled just before use, or when the compile method is called.


    © 1997 by Microsoft Corporation. All rights reserved.

    See also:


    file: /Techref/inet/iis/jscript/htm/js600.htm, 3KB, , updated: 2008/2/2 04:15, local time: 2012/2/10 12:25,
    TOP NEW HELP FIND: 
    38.107.179.232:LOG IN

     ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
    Please DO link to this page! Digg it! / MAKE! / 

    <A HREF="http://www.piclist.com/techref/inet/iis/jscript/htm/js600.htm"> Regular Expression Object</A>

    After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


    Link? Put it here: 
    if you want a response, please enter your email address: 
    Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
    Did you find what you needed?

     
     

    Robotics nuts!

    Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.
    The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow!

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

      .