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


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

Re: Testing Regular Expression on OS-X

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Jolly Roger <jollyroger@pobox.com>
Newsgroups comp.sys.mac.system
Subject Re: Testing Regular Expression on OS-X
Date 26 Nov 2013 16:12:57 GMT
Organization People for the Ethical Treatment of Pirates
Lines 23
Message-ID <bfjvk9FduirU2@mid.individual.net> (permalink)
References <52944d38$0$17083$c3e8da3$40d4fd75@news.astraweb.com>
X-Trace individual.net 1oSf+Uq0tStgvKWoaH/spAd3bP8//T0jjnGll3GMgxO04G9q/a
Cancel-Lock sha1:S09erE+b/qKeE7CPiE9DtfRPQ6k=
X-Face _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW< ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e up1/bO{=-)
User-Agent slrn/1.0.1 (Darwin)
Xref csiph.com comp.sys.mac.system:52697

Show key headers only | View raw


On 2013-11-26, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> 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.

I usually end up using TextWrangler for that.

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next 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