Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #52759

Re: Testing Regular Expression on OS-X

Date 2013-11-27 16:17 -0500
From Nelson <nelson@nowhere.com>
Message-ID <0001HW.CEBBCB9302C6527EB02919BF@news.astraweb.com> (permalink)
Subject Re: Testing Regular Expression on OS-X
Newsgroups comp.sys.mac.system
References <52944d38$0$17083$c3e8da3$40d4fd75@news.astraweb.com>
Organization Unlimited download news at news.astraweb.com

Show all headers | View raw


On Tue, 26 Nov 2013 02:26:46 -0500, JF Mezei wrote
(in article <52944d38$0$17083$c3e8da3$40d4fd75@news.astraweb.com>):

> Is there an easy way to test a regular expression on OS-X ?
> 
> For instance, with the test such as:
> 
> /^Return-Path:.*onmicrosoft.com/
> 
> I'd like to make sure it catches
> 
> Return-Path: <AG02@uknationallottyboard.onmicrosoft.com>
> 
> but not unwanted stuff.
> 
> (this is added to the header checks in postfix).  So I'd like some easy
> way to test the regexp for syntax and see whether the match is made or not.

There are several nice online tools.  Google "regular expression 
tester".

-- 
Nelson

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Testing Regular Expression on OS-X JF Mezei <jfmezei.spamnot@vaxination.ca> - 2013-11-26 02:26 -0500
  Re: Testing Regular Expression on OS-X Sandman <mr@sandman.net> - 2013-11-26 09:19 +0000
    Re: Testing Regular Expression on OS-X JF Mezei <jfmezei.spamnot@vaxination.ca> - 2013-11-26 15:07 -0500
      Re: Testing Regular Expression on OS-X Richard Kettlewell <rjk@greenend.org.uk> - 2013-11-26 20:13 +0000
      Re: Testing Regular Expression on OS-X David Ritz <dritz@mindspring.com> - 2013-11-26 14:18 -0600
      Re: Testing Regular Expression on OS-X Sandman <mr@sandman.net> - 2013-11-26 21:25 +0000
  Re: Testing Regular Expression on OS-X Barry Margolin <barmar@alum.mit.edu> - 2013-11-26 10:43 -0500
    Re: Testing Regular Expression on OS-X Jolly Roger <jollyroger@pobox.com> - 2013-11-26 16:13 +0000
    Re: Testing Regular Expression on OS-X Sandman <mr@sandman.net> - 2013-11-26 21:19 +0000
  Re: Testing Regular Expression on OS-X Jolly Roger <jollyroger@pobox.com> - 2013-11-26 16:12 +0000
    Re: Testing Regular Expression on OS-X JF Mezei <jfmezei.spamnot@vaxination.ca> - 2013-11-26 15:13 -0500
      Re: Testing Regular Expression on OS-X Jolly Roger <jollyroger@pobox.com> - 2013-11-26 21:19 +0000
  Re: Testing Regular Expression on OS-X Lewis <g.kreme@gmail.com.dontsendmecopies> - 2013-11-26 22:22 +0000
    Re: Testing Regular Expression on OS-X Lewis <g.kreme@gmail.com.dontsendmecopies> - 2013-11-26 22:23 +0000
  Re: Testing Regular Expression on OS-X Martin Τrautmann <t-usenet@gmx.net> - 2013-11-27 07:42 +0000
  Re: Testing Regular Expression on OS-X Nelson <nelson@nowhere.com> - 2013-11-27 16:17 -0500

csiph-web