Shared Top Border
  
 
 

Welcome to cmdLine:// Plus!

DOWNLOAD NOW!

Shared Left Border

Home
Version History
Help and Examples
Contact Us

 

Make a point to bookmark this page!  Many features are planned for addition to both Plus! and PRO versions.  Feel free to make suggestions to the Suggestion Mailbox

 
 

Did you know about cmdLine: PRO?

Included with your copy of cmdLine:// Plus! is another program called cmdLine: PRO.  PRO is the best utility for those of you who write scripts or batch files!  Almost all of the commands that are available with Plus! are available with PRO.  PRO also includes a special option to output the results as a SET command to facilitate the setting of local environment variables.  A typical use is renaming or setting a filename to include the current date.  Now, with PRO, you can do this with two lines.

The first line is redirecting the output of CLP.exe to a .bat file, which will contain the
SET varname=value command.

The second line is calling the .bat file to set the variable.

Its that simple!

You'll find the program (CLP.EXE) in the application's program directory


Help and Examples

 
Help on commands:
math:// | date:// | time:// | text:// | text://regex... | reg:// | props://
 

 

text://regex...

Usage:

text://regextest(<text>);<regexp>
text://regexindex(<text>);<regexp>
text://regexcount(<text>);<regexp>
text://regexcapture(<text>);<regexp>;<index>

Where <text> is a some text to be searched,

<regexp> is a Regular Expression pattern


Examples and explanations:

  • text://regextest(<text>);<regexp>
      returns True or False depending on whether the <regexp>
      pattern is found in <text>

  • text://regexindex(<text>);<regexp>
      returns a number that indicates the character position in
      <text> of the first occurrence of <regexp> in <text>

  • text://regexcount(<text>);<regexp>
      returns a number indicating the number of successful matches
      of <regexp> in <text>

  • text://regexcapture(<text>);<regexp>;<index>
      returns the text that matches the <regexp> in <text> where
      <index> is the index number of the successful match of
      <regexp> in <text>
      Example:
          text://regexpcapture(This is his chance to advise);[^ ]is;2
          returns ‘his’ and not the ‘ is’ after ‘This’.

Here are some simple explanations of regular expression patterns:

·          .   is any character

·          +   is the character before the + one or more times; .+ will find any character at least once

·          *  is the character before the * zero or more times

·          ?  is the character before the ? zero or one time

·          [abcm-p]  is any character in the list or between ‘m’ and ‘p’

·          [^abcm-p] is any character except those in the list

Visit these links for detailed used of Regular Expressions:
 
# Regular Expressions @ msdn.microsoft.com
 
Table of Metacharacters @ msdn.microsoft.com


Shared Bottom Border
  Part of the iQueue Systems, Inc. family.  

 
iQueue Systems, Inc.  All rights reserved.  ©2003  No portion of this site may be re-produced for any purpose without prior written permission.
Contact webmaster@iqsweb.com for more information