2

Need to work a bit on a pretty big text file.

Could someone suggest something similar to "The Regex Coach" but to be able to save matched results only?

wonea
  • 4,783
  • 17
  • 86
  • 139
Somebody
  • 9,316
  • 26
  • 94
  • 142

4 Answers4

1

Tools like "The Regex Coach" or the "Regular Expression Designer" are tools to test regular expressions and not to work on files. I don't know one that can store the results, Regex Designer can store the Regexes in a xml file.

If you want to do that you should use a Editor with regular expression support, like:

  • Notepad++, is free but the regex support is a bit limited.

  • UltraEdit, not free (trial period of 30 days), but better regex support

stema
  • 90,351
  • 20
  • 107
  • 135
0

Regex Pixie is a tool that can save just the matches.

viggity
  • 15,039
  • 7
  • 88
  • 96
0

There are many good tools available. I regularly use the following. Based on the OP, it sounds like a simple use of grep would work (grep pattern file > newfile).

Many others as well (Perl, Python, etc.)

Mark Wilkins
  • 40,729
  • 5
  • 57
  • 110
  • @Mike: I don't think you are correct. I just downloaded and ran the setup for grep. It only installed the files for grep. It did not install all of cygwin (unless cygwin only consists of grep :) – Mark Wilkins May 13 '11 at 21:55
  • Ugg I meant to say that your links are correct. You have to go into the cygwin package selection utility and select the tools like awk and sed – Mike Pennington May 13 '11 at 22:46
  • Guess i'll go with Ruby. There is nice oneclick setup. Read a bit of documentations and write a small script. Thanks ;) – Somebody May 29 '11 at 15:03
  • You don't need cygwin. Just add grep install location to your system PATH variable and use it from CMD.exe. – mixedbag99 Oct 03 '18 at 15:36
0

I have been using Ultrapico's Expresso, which is a free desktop Windows app. It allows complete development and testing of all scenarios specified in the IEEE specifications, and is a great tool. I can't recommend it strongly enough. It lets you save and retrieve projects, so if you are heavy into RegEx, you will be very happy with how it supports your needs.

https://regex101.com/ is available online, it's OK but nowhere near as robust as Expresso.

For Mac, there is Re/g in the App Store for $13.99, I don't know how good it is.

For Linux, you can run some quick checks in Bash shell, but for playing around you are probably better off on the websites.

Jay Imerman
  • 4,475
  • 6
  • 40
  • 55