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 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: 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>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:52697 On 2013-11-26, JF Mezei 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: > > 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