Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #52685
| From | Sandman <mr@sandman.net> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Testing Regular Expression on OS-X |
| Date | 2013-11-26 09:19 +0000 |
| Message-ID | <slrnl98pua.uhi.mr@irc.sandman.net> (permalink) |
| References | <52944d38$0$17083$c3e8da3$40d4fd75@news.astraweb.com> |
In article <52944d38$0$17083$c3e8da3$40d4fd75@news.astraweb.com>, 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. echo "Return-Path: <AG02@uknationallottyboard.onmicrosoft.com>" | grep "^Return-Path:.*onmicrosoft.com" -- Sandman[.net]
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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