Also known as regular expression or regexp, a description of a set of strings, often used for searching and validating strings.

learn more… | top users | synonyms (1)

4
votes
0answers
13k views

Is it possible using regular expression in inbox rule criteria

I want to filter all mail whose subject starts with [SomeWord], so I wonder is it possible using regular expression(such as ^\[SomeWord\]) for inbox rule of outlook. I'm using outlook web aceess, not ...
3
votes
0answers
1k views

Nginx rewrite to remove first (generic) path node

I am currently writing a dispatcher that will dispatch different URLs to specific service URLS. I essentially want to dispatch something like: POST http://nginx/awesome_service/a/lot/of/params/and?...
2
votes
0answers
64 views

Regex expression cuts zero in the end

I have a script with powershell regex in it, and after I upgraded from Windows 7 to 10 it working different. Regex: if ($srv -match '^[0-9]{1,3}\.[0-9]{1,3}$'){$srv = "192.168.$srv"} Expected: ...
2
votes
0answers
492 views

Changing puttyTRAY's URL regex in order to match URLs across lines separated by tmux window boundaries

I use puttytray to access a shell account on which I have a tmux instance running. Inside tmux, I have irssi running in a window. When people post long URLs in IRC, however, it's annoying since these ...
1
vote
0answers
8 views

How can I perform regex searches over secured PDFs?

I want to do regex searches over the Air Canada Timetable PDF file (available here). Unfortunately, the file is secured, and that seems to prevent many of the usual ways of doing regex searches over ...
1
vote
0answers
37 views

How to properly match newline with zsh regex?

for my prompt i am trying to parse the current git branch out of the resulting text of the git status command. For example, it returns: On branch master nothing to commit, working directory clean ...
1
vote
0answers
89 views

Regex to find commas, excluding commas inside a string demarcated by double quotes

I would like to manipulate a closed .csv file without opening it through a button on an Excel AddIn. I am able to complete all the steps but am having a problem with finding a regex that would ...
1
vote
0answers
54 views

MS Word, can we write a multilingual regular expression?

I want to find all the occurrences of the from x.y and change it to x,y where x and y are numbers: I was using this: ([0-9]).([0-9) and doing the replace using \1,\2 but here is the catch , if the ...
1
vote
0answers
105 views

Search & replace speed in Notepad++ / indexing

I am using Notepad++ to search and replace in around 60, 000 files, one folder. It only seems to be processing around 2 files per second, is there any way to speed this up? I have an i7 processor ...
1
vote
0answers
152 views

Sublime Text: Why regex in syntax highlighting does not work?

In Sublime Text 3, a default syntax highlighting rule paints a SQL SELECT just fine if it's in the same line, but not if it's in the next line: vs After reading this question I opened the PHP ...
1
vote
0answers
163 views

how to set outline-minor-mode heading levels in outline-regexp

I am trying to add a custom heading to program mode, and I want it to be on the highest level and move all other levels down, so I can add more structure to my long script. For example, for python ...
1
vote
0answers
94 views

LDAP role/group membership

We have many users registered in our LDAP auth. So far we've only stored login and mail-related information in this LDAP. In our main application (Play! Framework), we needed to modelise roles (...
1
vote
0answers
142 views

TextAnalysisTool.NET equivalent for OS X

I've used TextAnalysisTool.NET in the past for analyzing log files on Windows machines and found it incredibly useful. I love the simplicity+power that it achieves for dynamically grepping log files, ...
1
vote
0answers
53 views

Script to port specifc data from doc1 (notepad++) to specific place(s) in doc2

I really appreciate your help with a windows script or regex function that ports specific data from doc1 (xml in notepad++) to specific place(s) in doc2 (notepad++). I'm running win8. Thank you in ...
1
vote
0answers
660 views

Midnight Commander copy/rename with replaced characters

I would like to copy/rename (F5/F6) with regex (regular expression) mask all the tagged files or directories with names containing space or á or é characters replaced with underscore and a and e ...
0
votes
0answers
10 views

sudoers entry regex possible here - and file membership

i.e. from man sudoers I got the info When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most ...
0
votes
0answers
7 views

Devmon exception template to alarm only if ifAliasBox contains string “uplink” (for Xymon)

to monitor my network I use Xymon with Devmon SNMP crawler. Devmon is a perl program for extracting and interpreting data received from SMNP capable devices. Therefor templates are used for each ...
0
votes
0answers
20 views

start scanning from next page number (incrementing page numbers of files)

I am scanning a couple of my notes. The are saved as note1.jpg,note2.jpg,note3.jpg and so on the scanning happened smoothly till note48.jpg, some how some thing at this instant went wrong and then now ...
0
votes
0answers
21 views

Efficient Find/Replace Heading in MS Word that Contains text

I have multiple Heading 3s in MS Word. Some of them contain specific text: "MYTEXT". I want to find all Heading 3s that include "MYTEXT" and remove that word and all text to it's left while ...
0
votes
0answers
13 views

Regex: Define multiple whois servers for a single TLD in whois.conf

A single TLD is defined by this way in whois.conf for GNU whois: # whois configuration file # # This file can contain details of alternative whois servers to use if # the compiled in servers are not ...
0
votes
0answers
17 views

Automatically Monitor and Rename Files with Regex

Is there a tool that allows you to monitor a folder for new files and apply a regular expression to automatically rename the files?
0
votes
0answers
13 views

Possible to use RegEx and Notepad++ to compress repeated words to word counts

I would like to use NotePad++ Find and Replace with RegEx to essentially compress data in a text file. I have data which contains repeated adjacent words such as: [dog][cat][cat][dog][cat] I would ...
0
votes
0answers
39 views

JFlex: multiline string literal (multiline bash commands)

I use JFlex to describe a file format. It uses a literal string to describe the multi-line commands (as in bash). I do so: STRING_LITERAL= "\"" ([^\"])* ("\\\n"|"\"")? Text example: CMD "git ...
0
votes
0answers
47 views

fail2ban does not ban IP although there is one failed regex in table

I don't know why fail2ban not adding the bad ip into iptables rules. Here is my setup. /etc/fail2ban/filter.d/http-get-dos.conf [Definition] failregex = ^<HOST> -.*\"(GET|POST).* ignoreregex = ...
0
votes
0answers
23 views

Notepad++ If a line contains a word replace line a certain distance below with a phrase

I'm pretty sure this is possible, and I think it involves Regex, but I have no clue how regex formatting works, and I haven't been able to find the expression I'd need anywhere yet. Basically I've ...
0
votes
0answers
18 views

How to use RegEx modifiers within Ultraedit?

I'm looking for using regex modifiers like (/g global, /s single line, ...) on UltraEdit. I want to use them when applying Find/Replace on my files using UltraEdit. Note: I'm using UltraEdit for ...
0
votes
0answers
7 views

Pattern finding application that generates regex?

I am building rule sets to recognize weak passwords, to do this quicker, I am thinking I will take a cracked password word list from https://hashkiller.co.uk/downloads.aspx and run it through a ...
0
votes
0answers
46 views

Disable emoji icons in Chrome?

I want to disable emoji in Chrome, or replace them with something else (not for any particularly deep reason - figured it'd be amusing). I'm using an extension called Word Replacer II, which allows ...
0
votes
0answers
10 views

.htaccess to hide 2 possible directories

I am having difficulties getting the second statement working regarding admins, i am trying to hide both new and admin parts of the directory. new seems to be hiding fine however admin doesnt want to ...
0
votes
0answers
23 views

Dreamweaver REGEX trying to find and replace (or remove)

So far am using this: "http([^>]+) as my REGEX. The page has multiple urls mixed with text and DOM Elements. Something like: <li><a href="http://www.uen.org/toolbox">UEN's Teacher ...
0
votes
0answers
39 views

Replace using Regex in Notepad++

I want to replace every occurrence between <fb:like href= and </fb:like> in notepad++. I know I can do this with Regex, but i tried for a couple of hours in vain. I have to do this in a ...
0
votes
0answers
21 views

Regex search and replace on a webpage

I am proofreading plain OCR generated text on webpages, cleaning up typos (scanos) which I search for and replace using Regex strings. My problem is with the ">" and" "<" characters. How would I ...
0
votes
0answers
22 views

notepad++ continuing a line from

I have a file with many lines aaaa bbbn* ff fdsfdsf I want to have that but using the extended replacement like \n aaaa,bbbn*,ff,fdsfdsf I looked the internet for a list of these escape ...
0
votes
0answers
36 views

Selecting a group in a pattern on ZSH Glob

How can I select a group in a ZSH pattern to be used later in a substitution or a reference? Example: print the files matching a given pattern and followed by a substring of that name selected from ...
0
votes
0answers
22 views

vim regex pattern freezes search?

I need this pattern to find any () and anything inside, whether it be one word or a paragraph over multiple lines. but when the pattern hits the bottom if freezes? I have never encountered this before,...
0
votes
0answers
33 views

Why isn't find excluding files with the given regex?

I'm trying to find all files under /mnt/Storage not under /mnt/Storage/.Snapshots. The following works: find /mnt/Storage | egrep -v "^/mnt/Storage/\.Snapshots" But the following does not: find /...
0
votes
0answers
27 views

regex to match child mount points

I am writing bash script for checking that "child mounts" doesn't exits before "parent mounts" on fstab i.e: if I have the following mounts on fstab: good fstab mount point example first /...
0
votes
0answers
8 views

Is there any way to keep “Regular Expressions” checked by default in TextMate?

When I use the find/replace dialogue in TextMate2, 95% of the time I want the regular expression behavior. However, every time I restart TextMate, it defaults back to leaving it unchecked. It also ...
0
votes
0answers
17 views

Can Spamassassin be made to advise match details in description

I have a number of Spamassassin rules which use simple regex. Normally this regex is matching something like /(opt1|opt2|opt3)/i When a rule matches, is there a way I can include the matched code ...
0
votes
0answers
45 views

Searching for a string with grep

I'm looking for a way to retrieve a dollar amount from a website using a combination of wget and grep. This is what I've got so far: wget http://csgobackpack.net/?nick=jotnova -q -O - | grep -o "[...
0
votes
0answers
24 views

tricky regular expressions for html > latex conversion

While converting a html document to latex, I want to replace patterns like < img STUFF src="STUFF/image.png" STUFF / > with \includegraphics{PATH/image.png} where STUFF consists of words, ...
0
votes
0answers
32 views

How to use TextMate 2's Find “In” Regular Expressions?

Ok, here is a scenario, in pictures. OK, so searching all files looks in 333 files, and finds 614 matches. First result is alex/init.zsh. Fine. So I try to limit the scope a bit, with my logical ...
0
votes
0answers
39 views

Outlook Query to highlight messages that mention me?

In essence, I want to do some conditional formatting on messages that mention me. Below are 3 sample Messages (Bodies). The first two should be purple, the last one should not be purple because I ...
0
votes
0answers
38 views

insert text and numbers in notepad++

I have this: ...something...data-src="TEXT"...something...src="images/BBP/BBP0001/01SMALL.jpg"...something... ...something...data-src="TEXT"...something...src="images/BBP/BBP0001/02SMALL.jpg"......
0
votes
0answers
39 views

Find and Replace in .txt file by extracting data from spreadsheet

I need to replace instances like Manhole Name="1" with Manhole Name="SW3/001" for instance by extracting the data from spreadsheet. Would that be possible using regex, or in any possible way ? ...
0
votes
0answers
66 views

Regular Expression to match a dot followed by a space inside a tag

I must be missing something quite obvious, but I need to match every dot followed by a space ". " inside these tags: <example:label xml:lang="en">One. Two. Three. Four</example:label> <...
0
votes
0answers
39 views

mutt regex for limit filters

Does mutt support multi-line regex for its search filters? I cannot find an yes or no in the documentation. I'm assuming its not supported, but cannot tell if maybe I am improperly escaping my regex. ...
0
votes
0answers
45 views

HTTPD 2.2.15 AliasMatch

I have built a regex for an AliasMatch that tests out fine against the PCRE tester at regex101.com. The task I am trying to accomplish it to allow any alias matching a pattern to refer to a common ...
0
votes
0answers
106 views

How expand NSDataDetector's NSTextCheckingType and corresponding pattern?

I want detect some condition more than NSDataDetector's internal types, so need know whether IOS system already provide a interface for expand NSTextCheckingResult. apple document just say: the ...
0
votes
0answers
27 views

FatRat - How to add FTP credentials?

I am wondering, how to add FTP credentials to FatRat? You have to insert an regular expression, but how exactly does it have to look like? Anyone has an example of an regular expression? For example ...