Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Debugging regexes Date: Mon, 05 May 2014 23:19:26 -0700 Organization: Canadian Mind Products Lines: 39 Message-ID: <3augm9tpdsr4be3m41f9jgomngphe2hbft@4ax.com> References: Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: ForteAgent/7.20.32.1218 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:28387 On Fri, 25 Apr 2014 10:09:22 -0700, Gene Wirchenko wrote, quoted or indirectly quoted someone who said : > I wish that there were not so many varieties regex languages Amen brother. I use three different schemes every day: 1. Java 2. Funduc search replace 3. Visual Slick edit Unix It is so hard to remember six different sets of reserved characters, just to get started. I wrote a little tool to help http://mindprod.com/applet/quoter.html It takes any string and treats it as data and quotes it by the three different schemes, search or replace. and shows it raw, in a Java String, in a CSV file. I was browsing http://regexbuddy.com Their products supports many different schemes. I asked about the three I use. They did not respond. I have written a specialized CSV-based regex search/replace. I like working with Java regexes best since they are rich in features, and well documented. It takes lines of the form fromString, toString, file1, file2, file3... At some point I will teach itn wildcards and negatives. -- Roedy Green Canadian Mind Products http://mindprod.com Culture is your operating system. ~ Terence McKenna (born: 1946-11-16 died: 2000-04-03 at age: 53)