Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

Contains Regular Expressions (GPL)

ContainsRegEx.cmd is a Windows batch program that can help determine if a specified string contains a specified regular expression. ContainsRegEx.cmd outputs 1 (for true) when the substring is a part of the string. Otherwise, it outputs 0 (for false).

ContainsRegEx.cmd takes advantage of the SetNumberOfArguments.bat (GPL) script that is also available on this web site. So to use ContainsRegEx.cmd, you'll have to download SetNumberOfArguments.bat, if you don't already have it.

ContainsRegEx.cmd is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage

  "ContainsRegEx.cmd" "string" "regular expression"

Examples

  C:\>ContainsRegEx.cmd "hello" "el*"
1

C:\>ContainsRegEx.cmd "hello" "e*"
1

C:\>ContainsRegEx.cmd "hello" "world"
0

C:\>ContainsRegEx.cmd "hello" "ell"
1

Attached File: ContainsRegEx.cmd (713 B)

Chieh Cheng
Tue, 18 Nov 2014 21:32:30 +0300

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 2 - 0?
Click button only once, please!

TrackBack

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

11 Users Online

Hacking Digital Cameras
Fun for Photographers


Amazon Associate

Copyright © 1996 - 2017. All Rights Reserved.