Hot answers tagged

11

I recommend Expresso. It is a free tool, but you need to register you after a trial period. Registering it is also free. Expresso provides: Building regular expressions Testing regular expressions: you can match and validate regular expressions and test replacement of results with a replacement string. An expression library: a library that contains ...


6

hmm I can't think of anything that does exactly what I think you want to do. However I have a pretty close option; Adblock Plus. To go over your requirements: Open source: Yes. Gratis: Yes. No 'dial home' features: auto-updating is the norm for Firefox extensions; that can be disabled in Firefox; Adblock Plus also has filter lists that can be set to auto-...


6

I recommend Everything search by voidtools. It is very lightweight, about 500KB. Searches for any file on your PC instantly while you type. Support for Regular Expressions. Adds to context menu and you can directly search for something in a particular folder. Option to exclude folders of your choice. Can index a network drive, newly inserted USB device ...


6

RegexBuddy for analyzing and tweaking regular expressions. This is one of my most important tools. RegexMagic for hand-held creation. There's also a big list of tools at the bottom of the Stack Overflow Regular Expressions FAQ. RegexBuddy (this is the part I use the most by far--analysis): RegexMagic: Regarding scripting, I know of the RegReplace ...


5

You should check out RegexPlanet, I think it most closely matches what you are looking for. RegexPlanet is an "Online Regular Expression (Regex) Testing and Cookbook for: Go, Haskell, Java, JavaScript, .Net, Perl, PHP, Python, Ruby, Tcl & XRegExp" It has support for 11 languages, including Java, Perl, .NET and Ruby. It even has a shortcode ...


5

You Already Have OS-X comes with python installed, if not it is a free download, and python comes with the re library installed by default, which is one of the best regular expression libraries that I have found, what I especially like is that you can put comments into your regular expressions. OS-X also comes with grep & sed installed which can both ...


5

Personally I would recommend the online regex101: Supported flavours: pcre (php), javascript & python Your own library and others Shows you what is going on as you construct your re Explains what each element does Built in quick reference Substitution Editor Code Generator re formatter for verbose options Free, gratis but contributions invited Open ...


4

I love RegexBuddy. This is not a free product ($40USD), but its capabilities make it a bargain. I have been using it for years. This is a Windows-only product that can handle many different regex flavors. It has a real-time evaluator which shows you the results of your regex as you type it, a debugger which helps find errors, and an editor that works ...


4

I am using Rad Regex Designer. I was fascinated about it a few years ago as I started learning the regular expressions concept. It has: A decent editor with split windows allowing you to: Define the input, the regex, and optionally a replacement expression. View the replacement output (if you have specified replacement expression) View the hierarchy of ...


4

I recommend FreeCommander for this task. It meets all of your requirements: It searches recursively It has an option to only search the top-level directory It can search by regular expressions (regex) It can exclude folders (even by regex too!) It has a nice UI It is very fast It works on all the versions of Windows you require To search by regex, go to ...


4

I've found RegExr very easy to use; it's an online tool that lets you build a regular expression as well as how it matches a sample text. Pros: Edit regex and see matches live Online (runs anywhere with a browser) FLOSS (MIT license) Explains the meaning of various characters in the expression when cursor hovers over them Includes a cheat sheet and ...


4

There is a chance, that Sublime is suitable for your task, but with several prerequisites: You should disable plugins such as syntax highlighting, bracket matcher or git gutter, i.e. any plugin that applies regexes to the edited text. Otherwise memory/CPU requrements will be unexpectedly high. The file must accept being split into lines. Good example: a log ...


3

My go to program for a Windows Explorer replacement is MultiCommander. It’s an explorer type replacement that has many features including the ability to restrict your search level, regular expressions, and the use of file attributes in the search pattern. It’s free and runs on Windows and Server 2008.


3

It's possible to convert .pdf document to a text file. After doing that it should be possible to extract a piece of text depending on how regular will it be using regular expressions. You did not specify what OS you are using but on *nix it's possible to automate this using pdftotext command line tool and a combination of grep/sed/cut/awk/perl. To download/...


3

www.txt2re.com may be one to look into. It seems to handle what you are looking for (create it with a web GUI, and provide it in a slew of programming languages).


3

I have found JRegex. It seems to include the set of syntax from Perl5.6 regular expressions (Version 8 perlre), with special syntax for named backreferences and in-pattern comments. However it is not very reliable and runs into infinite loops in typical zero-length matches, which is unfortunate.


3

I've tried different solutions, from regular expressions in Sublime Text to dedicated JavaScript beautifiers such as js-beautify and UglifyJS2 (with the --beautify option). Regarding regex, it seemed too complicated to find an expression that could cover all the cases you mentioned, while for the other two tools, they look good, but even with specific ...


2

Bayesian filtering is so millenium. ;) Honestly though, over the last five years the email industry has changed so much that it's nothing like it once was. Bayesian filters used to be the norm for filtering, and now they are very lightly used to only tag the most obvious offenders that are very clearly unsolicited messages. IP Reputation is where you ...


2

As far as I am aware, Windows 7 Explorer has all the basic features you need, and some of the optional features as well. You can index a file directory in Windows (7+) in two ways. Directly index the directory, or make it a library. Direct Index: See here: wikiHow: How to Add a Folder to the Windows 7 File Index Create Library: In Explorer, go to "...


2

Regain (desktop search)   You can find a list of desktop search managers on Wikipedia but I find the Regain opensource project as being a sensible choice, beside that is free(as in libre) and also opensource and still in development which means new features will appear(full features list here). Short Description Regain is a Java search engine based on ...


2

I would suggest looking at Python and Scrapy. Python with it's standard libraries includes lots of very powerful text processing tools including regular expressions but scrapy takes it a lot further. From the web site: Built-in support for selecting and extracting data from HTML and XML sources Built-in support for cleaning and sanitizing the scraped ...


2

Not a windows app, but if that isn't a barrier to you, I'd recommend Regex101.com - it does allow you to switch between pcre/javascript/python/golang flavours, if that helps.


2

Expresso Regular Expression Tool has an expression builder: and built-in libraries: Perhaps this is what you are looking for?


2

Ruby: http://rubular.com/ Rublar is a regular expression editor for Ruby that has inspired many others, and it may be a good search stub. JavaScript, Python, PCRE: https://www.debuggex.com/ Debuggex is fairly new, but it sports some pretty nice railroad diagrams for visualizing regular expressions. Diagrams are especially nice for reading regular ...


2

After a bit of Google searching, I found the bookmarklet that I was looking for. In case this link becomes broken, I have posted the bookmarklet's source code here: javascript:if(typeof(searches)=='undefined'){var searches=0;};(function(){var count=0,text,regexp;text=prompt('Search regex:','');if(text==null||text.length==0)return;try{regexp=new RegExp(text,...


2

A similar question was asked on Stack Overflow but it might get closed as off-topic since it is a tool recommendation. The answer by Roman was: From what I could find, Xeger is the most popular solution, but it is in Java. However, apparently there is a C# version: Fare. If you read the description, they say that Xeger was partially ported into Fare ...


2

I recommend Notepad++ with the Hex Editor plugin. It is completely portable, free (gratis), open-source, meets all your requirements, and is high-quality. Alternatives include: Hex Editor XVI32, which meets all your requirements (including portability), except it does not have full regex searches. It does have wildcard search, which has its pros and ...


2

Other folks recommend solutions involving regex. That won't be reliable; regex does not work for parsing nested structures. In essence, you need a parser. You may be able to hack together something in a procedural language using regex, where the procedural language code in essence is the parser, but then that's a solution that uses a little bit of regex ...


2

I use Strawberry Perl for regex operations. It is a free and open source distribution of Perl that works on Windows, and it has a portable version. Perl regex is strong and easy to pick up, and it matches your criteria: Uses ^ and $ to indicate the beginning and the end of a line, respectively Uses the \n token for newline on Windows It is case sensitive by ...


2

You already have… grep and sed If you’re okay with POSIX regular expressions, every unixoid system comes with grep and sed. Extract matching lines: grep 'pattern' file Extract matches: sed -n '/^.*\(pattern\).*$/s//\1/p' file This gets a little more complicated, so create a script for it: #!/bin/sh pattern=$1 shift sed -n '/^.*\('"$pattern"'\).*$/s//\...


Only top voted, non community-wiki answers of a minimum length are eligible