Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [regex]

Regex, short for [Regular Expression](http://en.wikipedia.org/wiki/Regex) is a sequence of characters that forms a search pattern, mainly for use in pattern matching with strings. Use this tag for regarding software that allows creating/editing and executing regular expressions.

0
votes
1answer
23 views

Code Analysis - List of all static fields

Is there any tool which can list all static fields in source code. It is difficult to write reliable regular expression, because static field definition may have several formats, different ...
0
votes
0answers
5 views

Tool to extract named groups from regex matches

First of I'm not a programmer. Recently I wrote some regex code which identifies the information I want to extract from a tekst file (not SEO related). I named the groups that I want to capture. I ...
0
votes
1answer
7 views

Free Regex Generator (Ruby on Rails)

I'm building a log parser app using ruby on rails. I'm looking for a free regex generator than is able to produce the regex expression of a specific part of a log file entry. I'm wondering if there's ...
0
votes
0answers
9 views

“light” regex alternative for alphanumeric search?

I am creating a small website in which users will be searching mostly for words but possibly also for short alphanumeric phrases. I wouldn't dream of asking my users to learn regex, but would like to ...
1
vote
4answers
36 views

Code editor that supports regular expression lookbehind search

I am currently using VSCode on Ubuntu, which does not currently support lookbehind in their search (although it is in the pipelines). Are there any GUI code editors for Linux that does support ...
1
vote
2answers
26 views

Regex File Content Scanner with Capturing Groups

I am looking for a UI tool that scans files (filtered by file name patterns, maybe also regular expressions) in a given directory (tree) for occurrences of a given regular expression and displays ...
1
vote
1answer
24 views

Web-app or Windows app to show speed of regex (regular expression)

I am looking for a gratis web-app or Windows app that shows me the speed of computing a regex on one or more sample strings. The speed can be actual speed, or a relative speed as compared to a ...
2
votes
0answers
27 views

PowerGREP-lite like regular expression tool

I frequently need to do a lot of "search and replace" within a single file. I have a text file where I store my regex searches, but as the number of items increases it becomes tedious to copy-paste ...
0
votes
0answers
16 views

C++ library for regular expression represented as finite automata?

I need to create a finite automata from a regular expression in C++. E.g., /(a|b|c)/ would be transformed to the equivalent accepting DFA (q0->q1 with emissions a,b,c, q1 being an accepting state). ...
1
vote
0answers
20 views

Android App that does regex find-replace on clipboard

I'm looking for an Android App that I can set a matching regex pattern "like in ClipRx" for the frequently updated clipboard content. Once it finds a specific match, it applies the RegEx finds-replace ...
0
votes
1answer
233 views

Any C++ RegExp library with support full regexp in lookbehind

For example symbol * and +. Like net.Framework C#. This example should work sucessfully: (?<=a.*)b
0
votes
0answers
19 views

Java Library (or regex examples) for identifying code in a String

Does anyone know of a Java dependency or suite of regular expressions that can check a string for instances of code? Preferably one that can check for instances of code based off paramter such a ...
3
votes
3answers
72 views

Editor that shows RegEx selection and replacement results?

Doing a lot of regular expression search and replacements can be a hassle sometimes. I've found that a tool on macOS called "Better Rename" does a fantastic at showing a preview / live view of what ...
1
vote
2answers
40 views

Search & Replace Software which accept replace words count more than 234,206 characters

I have to replace words in files/folders with replace-words length (234,206 words). Notepad++ does not allow replace-word-count more than 2,047 words. TextCrawler 3 does not allow replace-word-count ...
1
vote
0answers
34 views

Alternative to sudo which allows regular expressions

Up to now sudo only allows simple wildcards. See: https://www.sudo.ws/man/sudoers.man.html#Wildcards Is there an alternative or an replacement which allows regular expressions? If possible Python ...
3
votes
2answers
213 views

Text editor that takes more than 10 gb

I have Emeditor and it does what I want but when it has a file that has one or more gb, it slows down a little or doesn't do a lot. I wanted to know if there's a text-editor that has or does what ...
2
votes
0answers
97 views

Use regex and delete duplicate lines of text file that has 1 or more GB

Do we have or is there a program/software that has regex and deletes duplicate lines of text file that has 1 or more GB? I have Emeditor but when I have a file that has 80 million lines and I want ...
1
vote
2answers
361 views

Library to generate text from regular expression

For example, given a pattern for matching email, I should get an array of strings that can be matched by the same regex pattern. Another example: Input: (a|b)[cd]{2}\1 Output: acca adca acda ...
2
votes
0answers
283 views

Is there a tool I can use to shorten regex as much as possible?

For example, let's say I have this regex: (jp(e)?g|png) This can very easily be shortened to this: (jpe?|pn)g They both will do exactly the same thing, but the second one is shorter. Is there a ...
3
votes
0answers
143 views

Regex minifier tool

Software/tool that takes a regular expression and gives equivalent shorter versions. That is, the two regexes would match the same strings with the same captured strings and will not match the same ...
2
votes
2answers
673 views

regex to code converter (code generator)

I need a code generator that transforms a regular expression in any notation into C or C++ code, that allows recognition and extraction of data from the input.
2
votes
1answer
370 views

An assistant for REGEX editing

I am somewhat learned in using regex, but my coworkers aren't. I was wondering if there was some kind of WYSIWYG program out there that can assist people with making edits with regex. e.g. if somebody ...
0
votes
1answer
62 views

Simple Editor with PCRE support

Up to now I use gedit to do search+replace of text I copy+paste. But I prefer PCRE (Python .-) compatible regular expressions) Wanted features: open source GUI (not terminal based (ncurses)) PCRE ...
3
votes
1answer
134 views

Convert indentations across all files in bulk

Is there a tool to convert indentations across all specified text files? From tabs to spaces, spaces to tabs, 2 spaces to 4 spaces, etc.? I mainly need it for JavaScript files. I use Sublime Text, ...
2
votes
2answers
80 views

Tool for extracting text patterns with Regular Expression?

Is there a good and cost-free tool for extracting text, using Regular Expressions? I'm using OS X. I know that there are online tools for "testing" Regex patterns – like Regex101 – but I'm looking ...
2
votes
0answers
36 views

SSH client that can play sound based on Regex found in output

Today I am using Putty with ANSI colors to highlight problems. In error cases I have injected \a (bell sound) and configured Putty to play a sound in that case. Unfortunately this solution is limited ...
3
votes
5answers
85 views

Program to search by file name in Windows?

I'm looking for a Windows program that searches recursively (although it would be nice to have an option to only search the top-level directory) in a directory for files whose names match a regular ...
2
votes
0answers
34 views

Distributed, indexed regular expression search

I'm looking for a distributed solution to do regular expression searches over a large directory structure with many nested directories and files. Ideally it will be also able to search file/directory ...
1
vote
0answers
481 views

Update on URL Validator for Java

I know this question has been asked but has anyone found a better URL validator library or tool other then the Apache commons-validator URLValidator, using a URLConnection object (super expensive), or ...
2
votes
1answer
116 views

What software do I need to convert a pdf to text that can then be processed using regex to extract specific pieces of data?

I have a bunch of pdf files/forms that are all in a standardized format. They contain information such version history, author, who signed the document, and what documents it references. I need to ...
2
votes
1answer
26 views

Automatically highlighting all occurrences of a regular expression on a web page

I once found a web application that was able to highlight all occurrences of a regular expression on a web page, but I can't find it now. Are there any other web applications that can do this?
3
votes
1answer
838 views

Reverse-Regex: Xeger for C#

There is Xeger, a library for finding valid input to a regular expression. That means, it does the opposite of what you usually do with Regex. I'm using this for fuzz-testing at the moment. I'm ...
2
votes
1answer
617 views

Windows Hex Viewer/Editor with Map of data & Regex Searching, preferrably Portable

I am trying to find a Windows hex viewer/editor that: Can display the binary/hex contents of a file or drive in a format similar to the way WinMerge gives an overview of the differences between each ...
4
votes
2answers
98 views

Is there a regex client for doing mass find & replace against thousands of files?

I have a large intranet containing tens of thousands of web pages developed over the course of the past 15 years. These pages are in the process of being updated with the HTML5 doctype. Among the ...
1
vote
0answers
43 views

Is there a 'generic colouriser' port for powershell?

I'm using 'generic colouriser' aka grc or grcat on Linux. I'm searching for a similar tool that can be used with powershell. Most implementations are not as powerful as grc. Here are some examples: ...
3
votes
0answers
231 views

PDF viewer that supports Regex search

I am looking for a PDF viewer with the following features: Supports Regex search, preferably Perl compatible Runs on Windows (7 and up) Is portable, or can be made portable Gratis Nice to have: ...
0
votes
1answer
101 views

How can I graph a log file using a regex

I have a log file containing lines like this one every minutes : [2015-02-13 14:29:53.2160][INF] [12] Memory : Total=370,000;Managed=120,000 I am looking for a tool that takes a (several) log file ...
3
votes
0answers
31 views

Translating a regex into a DOM range

First off, I need to make clear, I am NOT trying the bad idea of parsing markup directly with regular expressions. I want to find any JavaScript library which, when supplied with a DOM object, ...
3
votes
0answers
52 views

Build regular expression visually by interacting with HTML in .NET [closed]

I have been searching for a .NET based component to build regular expressions visually by interaction with the web page. See the image below for an idea of what I mean (This software uses a version of ...
3
votes
2answers
132 views

Is anybody able to recommend a GNU/Linux alternative to RegexRx?

On the Mac I use at work, RegexRX is installed. Unfortunately, It only runs on OS X and I'm looking for a GNU/Linux alternative, preferably a FLOSS one. The key functionality that I require is: ...
4
votes
1answer
228 views

Stream-based regular expression matching library for python2 or python3

Due to requirements of python's re module to allow going back into the input it consequently doesn't provide a possibility to pass anything else than a string as an argument to central functions of re ...
6
votes
3answers
1k views

Regular expression tool for windows

I'm looking for a desktop "Regular Expression 'Scripting' Tool" for Windows. I have been using Replace Text but there are issues with it in the non-standard way it handles Regex strings. Here are ...
7
votes
1answer
823 views

PCRE / Extended regex library in Java?

I'm in need of PCRE functionality for my regular expressions in Java. I've been unable to find such a library. What is an extended library (Hopefully including more of the PCRE constructs and extends ...
1
vote
0answers
37 views

A tool to create regular expressions that apply to a set of URLs?

Is there a webapp or other tool that can "read" a given set of URLs, and return regex that applies to all? I would ideally hope that it returns the "lowest common" pattern so that I can use the ...
4
votes
3answers
104 views

Looking for a powerful text processing tool

I need to extract some text patterns from the huge HTML. I can definitely write a precise regular expression with the group that matches exactly what I need. What tool would be appropriate to ...
8
votes
3answers
290 views

Free program to create regular expressions with a GUI

I am looking free program (ok if closed source) that can: create regular expressions with a GUI (i.e. the user don't have to deal with the regular expression syntax at al) work on Windows 7 SP1 x64 ...
1
vote
0answers
62 views

Library to test whether two regular expressions are equivalent

I am looking for a library to test whether two regular expressions are equivalent. Python/interpreted language/Java/C++ is preferred (in descending order). I'm also fine with a CLI program (free if ...
1
vote
0answers
43 views

Generate a regexp from a sentence

I am looking for a program (open source if possible) that can generate a regexp from a sentence written in English given as input. E.g. I'm looking if the input sentence is: "All 3-letter words ...
7
votes
3answers
222 views

Regular Expression tool like SQLFiddle

SQLFiddle is a webservice where you can setup and work with small examples of SQL on various systems (PostgreSQL, Oracle, MySQL, etc...) I am looking for such a webservice or library that parses ...
3
votes
1answer
295 views

Firefox extension to block arbitrary content using regular expressions

Needed: a Firefox extension/script to filter out unwanted content (all GET requests including those done through redirects: documents, scripts, iframes, pictures, any MIME type, actually). Already ...