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)

0
votes
1answer
11 views

Using grep for text search

I need to search the filesystem for text strings that match some string. I'm trying to get where the commands are used, meaning in which files they are called or used. I need to find every file where ...
2
votes
2answers
23 views

How do I signify repetition in a ZMV regex?

I'm trying to manually pull the digests off of Rails assets (don't ask). I was directed to ZMV for easy regex-based find/replace. But the normal {32} syntax for specifying an amount of repetition does ...
0
votes
1answer
25 views

RegEx expression to replace /randomword/ with <i>randomword</i>?

I'm looking for a RegEx expression to use with Find & Replace that will turn /randomword/ into <i>randomword</i> without actually changing the random word. Possible to do this ...
1
vote
2answers
71 views

Replace any number of spaces using regular expressions

How can I replace any number of consecutive spaces, with, for example, a tab in a text editor supporting regular expressions (like Notepad++) To clarify: Replacing every occurrence of one or more ...
0
votes
2answers
15 views

Append text to lines between two patterns every time they appear in a file

This will be a rather hard one, i guess. I have to fiddle around with inline documentation that is extracted into html files to be used as online documentation, but these parts of the files should be ...
0
votes
1answer
24 views

Is there a way to highlight text matching a regular expression in Chrome even upon page redirection?

Is there a way to highlight all words that are written in ALL CAPS when I load certain pages in Chrome? Ideally, the solution would work for the current page, and when I click the form button, it ...
1
vote
0answers
18 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
2answers
28 views

Remove lines containing only a word and a number ? (notepad++, regex)

I have several hundreds of .txt files from which I would like to remove the lines where only the word "Volume" followed by a number appears. The word "Volume" may appear several times in each text ...
0
votes
0answers
10 views

How to show temperatures on Conky from macfanctld?

On Ubuntu 14.04 in a Macbook Pro 8,1. I'm trying to display values of the temp sensors that macfanctld uses. When viewing /var/log/macfanctl.log or when sudo macfanctld -f outputs to stdout, the ...
3
votes
2answers
673 views

Asterisk (*) and plus (+) are not working in Notepad++ as a regular expression

I am using Notepad++ and learning regular expressions, but I am wondering why some of the meta characters are not working in the editor, that is, asterisk (*) and plus (+). For example: The tree ...
0
votes
0answers
19 views

Concatenating varying number of lines notepad++

I have a file where i need to take varying number of lines and concatenate into one. It could be two, three, or four lines that require concatenation. There is a common set of characters (say 'xxx') ...
0
votes
1answer
24 views

sed regex pattern matched greedy although it should not

I stumbled upon a behaviour I can not explain, hope some of you guys can help me out. I try to generate a sort of documentation from a bigger Ant project, as such I use sed to filter the information ...
0
votes
0answers
12 views

How to unblock Pinterest's follow button?

I use adblock on Pinterest and it blocks the follow button. I like to unblock the specific element without allowing other ads. Here are the regex I tried: pinterest.com#@#div.boardButtons ...
0
votes
1answer
32 views

regular expression to reverse the order of two unknown words separated by a comma

I am trying to use ReNamer regular expressions to reverse folder names that use author names. They are set up as LastName, FirstName and I need to change them to FirstName LastName (minus the comma). ...
0
votes
1answer
25 views

How to process files with purely numerical extenson [ regex ] Windows

Windows, batch. I want to process files in batch for loop. The problem is:I have no idea what exactly the extension will be. What I do know is that it will be a number. So what I'm trying to create ...
0
votes
1answer
12 views

How to replace from second occurrence

My data looks like this: Name,Minutes,Meters ABILENE TX - CHARLESTON SC - ABILENE TX - CHARLESTON SC,1162,2052516 ABILENE TX - CHARLESTON WV - ABILENE TX - CHARLESTON WV,1153,2029119 ABILENE TX - ...
-3
votes
1answer
23 views

I need help in selecting entire multiple lines that starts with unpackcontainer & copy that text to different text file in Notepad++

I need help in selecting entire multiple lines that starts with unpackcontainer (as shown) & copy that text to different text file in Notepad++ on Windows: unpackcontainer -s ...
0
votes
0answers
34 views

Loading org-mode agenda files

I'm having trouble getting Emacs to automatically include files in my org-mode agenda. I want files from two folders included, which I've attempted to do by setting (setq org-agenda-files (list ...
1
vote
1answer
12 views

Using perl regex over mutlple lines

I'd like to replace all occurrences of this in a file: ab ba With this: a a I tried the obvious: $ perl -i -p -e 's/ab\nba/a a/' file.txt With no success. How is this done? I can't find any ...
1
vote
1answer
17 views

Filezilla regex for filtering out all subdir except one

I'm trying to get filezilla filtering out all the subfolder of a certain folder except one without success. My tree looks like this: css/ |--many files and dirs... js/ |--many files and dirs... ...
0
votes
1answer
49 views

Is there any way to save a search in Xcode or OS X?

I want to improve my workflow by having a saved search that I can either simply open, or would automatically update. For my current particular use (may change in the future), it would search the ...
0
votes
2answers
22 views

How do I print the line only with the last occurrence of a regex?

I have a (large) file that has multiple occurrences of the expression SCF Done and I am (for now) only interested in the last of these lines. Currently I am using a piped command: sed -n '/SCF ...
0
votes
1answer
18 views

Appending (via rename?) `.bad` to files identified by `tests/test_.*`

What do I want? Given the following directory structure: . ├── bar.py ├── hap │   ├── bla.py │   └── tests │   └── test_hap.py └── hip ├── testimony.py └── tests ├── foo.py ...
0
votes
1answer
13 views

Excel: Find&Replace issue

I'm trying to find out, how to replace only those substrings (in my case it is ,_ where _ is a space), which starts at the beginning of the cell. I suppose, the solution should be like this regex: ...
1
vote
1answer
61 views

notepad++ User Defined Language regex

Is there a way to recognize certain text as a keyword Only if it is the first text in the row? I don't see such an option within the 'User Defined Language' -> 'Keywords Lists' options
0
votes
1answer
31 views

How to cp multiple file extensions?

How do I cp multiple file extensions, like png, jpg and tif files? I tried: $cp ./*.(jpg|png|tif) ../output/ >bash: syntax error near unexpected token `(` $cp ./01_reliefs/*.\(jpg\|png\|tif\) ...
0
votes
2answers
25 views

Append to data in an XML attribute using Regex in Notepad++

Newbie alert! I am trying to automatically append some text to the data within an XML attribute - I believe notepad++ will do it but I cant figure out the expression I need to use to search. It ...
1
vote
2answers
96 views

Find and replace notepad++ with wildcards

I've read about 15 tutorials on regular expression however I'm clearly not getting as I've been unable to tailor it to my problem. I have one set of code which would be found in many different ...
1
vote
1answer
51 views

RegEx to Remove All Text Between Set Characters

I'm using the Regex functionality in Notepad++ to delete all characters between specific characters. For example I have text file with the following line: table.column NOT IN ...
1
vote
1answer
26 views

Word wildcards/regex search from the begining of line till the first :

In MS word 2013 I'm having multiple lines like: Duis pulvinar, enim montes : magna tincidunt penatibus nec amet a nec tristique rhoncus aliquet? porttitor diam amet : nascetur sociis dapibus ...
0
votes
1answer
80 views

Remove of everything between two characters in Word (regex)

I need a regex to remove everything between the "<" and ">" characters. An example would be: <blah blah blah>Something I want <blah blah>really bad<blah blah> becomes Something ...
0
votes
1answer
51 views

Notepad ++ removing text between delimiters

I have some lines of text with this structure: TEXT1:TEXT2:TEXT3 I only need TEXT1:TEXT3 joined together. I want to remove the TEXT2 value. I have tried many options to try sorting them but ...
1
vote
1answer
28 views

How to specify a sed expression to remove non-printing octal characters from a text file

I am new to sed and am cleaning up a very large file. The cleaned document looks right, but when I read it into my R, it shows that each line is appended with \016\t at the end of each line. I have ...
0
votes
2answers
19 views

Notepad++ Joining a line containing a pattern to the previous line

I have a list of data containing table names and table parameters. In some of the cases, there is supplemental data containing the keyword SourceTableName Table:dbo_mlo_city;ODBC;DSN=blah; ...
0
votes
0answers
15 views

how to list all “reports” subdirectories that contains .jsp files?

I really have no idea how to do this on windows with Widnows Explorer. So I am trying to use Cygwin. Basically, I'd like to list the full path of all subdirectories "reports" that contains .jsp files ...
0
votes
2answers
45 views

Notepad++: How to trim strings to a maximum length in a huge file?

community i need your help, please! i want to trim strings in a file with about 900000 lines: KAA BSJDKWLADDKHUEW AJMJJ GMEMJRGUMGA GJWEGRJGJALUSGEUIGRL AGUGADJF WE ..... I Want to trim all ...
0
votes
1answer
36 views

Place string in front of underlined text in Word 2013

I have a bunch of questions with right (underlined) and wrong answers in a list like this: 1. What is love? - baby - don't - hurt - me where only the part with the right ...
2
votes
1answer
35 views

Convert specific word to uppercase

I have a document which have a specific words started with underscore ("_"). I need a regular expression for notepad++ to change it to uppercase. I've tried this one but it doesn't work: _\w+
0
votes
0answers
12 views

Keyboard shortcut to select the first result of a Regex search in Sublime Text 3

I attempt since 2 days now to config a shortcut to search for regex (regular expression) in the code and only select the first occurrence without automatic replacement. It allow me to navigate easily ...
0
votes
1answer
24 views

How to match one or more non-slash characters

I am given a relative path that descends n levels deep and want to produce the "reverse" path that ascends the same number of levels. I want to produce the same number of levels with or without a ...
1
vote
1answer
105 views

Using Regular Expressions with DownThemAll to exclude a file name

I'm using DownThemAll and a bit of regex to grab files from a web page. My DownThemAll filter is set up as follows: /\.(?:pdf|doc|docx|xls|xlsx|ppt|zip)$/i However, each page also includes the file ...
0
votes
0answers
34 views

Notepad++ find procedure/ function declaration

I need to find a procedure declaration in Notepad++. How should I search using regex to find procedure someproc(..) and not the procedure "includes" external procedure someproc(...) i.e., search ...
1
vote
1answer
35 views

regex - repeated capture used in repeated backlinks

I am successfully capturing successive groups that end with a colon, but I don't know how I might have each of those captures to be repeated in the replace, with backlink references. Here is a sample ...
2
votes
2answers
34 views

Use regex to change (reorganise) multiple filenames in Bulk File Renamer

I have a few thousand MP3 files nested in folders which I would like to bulk rename. The files currently have the following naming convention: "tracknumber_artistname_-_songname_MP3COLLECTION.mp3" ...
0
votes
3answers
50 views

regex delete line contain result in office word 2013

I have a document in word. My paragraphs like: asdfasdfasdf abcYear052014 asdfasdfasdf acbYear122013 I want delete line xxxYearyyyy so in notepad++ I put .*[0-9]201[0-9]$ and replace with ...
2
votes
1answer
67 views

Find UTF8 characters with RegEx

I have many files (xml, css, js, html) and would like to see everyone who has "UTF-8" characters, because some files are in ANSI and others in UTF-8 without BOM. I tried several "RegEx" to the ...
0
votes
1answer
44 views

Find questions (words before “?”) Regex Microsoft Word

I have several books that are improperly formatted that contain, among other things QUESTIONS and Answers. My job is to make all the questions CAPITALIZED AND BOLD. I'm using MS Word to maintain the ...
1
vote
4answers
189 views

Select lines that contain anything different from 0.00

I have multiple lines in a notepad++ document and I want to find all the lines that contain something other than "0.00" Ie Timetaken: 2.39 Timetaken: 1.30 Timetaken: 0.75 Timetaken: 0.00 Timetaken: ...
0
votes
1answer
30 views

How can I tell VIFM to filter binary files, “.hi” files and “.o” files?

I've managed to filter ".hi" and ".o" with: :filter '\.(o|hi)$' But how do I filter binary files too?
0
votes
0answers
40 views

Notepad++ function list: Account for jquery listeners in javascript class

Notepad++'s function list works decently well with PHP and Javascript. I am having an issue with DOM listeners breaking my FL structure though. Does anyone know how to solve this? Here's a ...