Operations that locate specific instances of conditions being met and replacing them.

learn more… | top users | synonyms (1)

2
votes
1answer
37 views

NotePad++ - How to remove or replace newline characters?

Within my notepad++ environment, I have the following value on a page... test me out </li> I can search and find the ending </li> value with.... \n</li> but what do I need to ...
1
vote
1answer
28 views

How do you Find & Replace only in specific Styles in Word?

I have a document with sub-sections and text. The sub-titles for each sub-section starts with a number. I want to remove this number. I know searching for ^# and replacing with 'blank' removes all ...
0
votes
0answers
7 views

How to put a dollar symbol before every column and row number in google spreadsheet

I have a big spreadsheet in google docs with many formulas like this: =MIN(C3;C4)/500+4. Now we need to add $ before every cell row/column to make it absolute. So, the formula should look like this: ...
1
vote
1answer
23 views

Linux bash, command replace

How can I erase the - from clipboard? I have a script: #!/bin/bash xclip -o | replace - "" | xclip Bat this doesn't work So replace \- "" take no effect ]$ uname -a Linux localhost.localdomain ...
0
votes
0answers
34 views

Delete “unidentified” carriage-return char from a text file

I have a text file containing a strange "carriage return" char. If I open the file with Notepad I can't see the new line. If I open the file with Wordpad I can see the new line. I uploaded an ...
2
votes
1answer
53 views

Bug in Microsoft Word with Find and Replace when searching text containing a hyperlink?

I was trying to replace a text with a email address in the middle of it in a Word document. If I only use the Find command, then it works fine, and Microsoft Word finds the text I wanted to replace. ...
2
votes
2answers
25 views

Sed replace between 2 strings with special character

I have an XML file containing a code and to use it with xmllink I need to remove a link. XML file containing: <xml version="1.0" encoding="UTF-8" standalone="yes"?> <PackingList xmlns="Link ...
0
votes
1answer
33 views

Search and replace option in notepad++ for making a dictionary

We've gotten several files from a professor who published his dictionary and we convinced him to make it open source and make it freely available online. So now I've ended up with several files with ...
0
votes
0answers
32 views

How do I bulk replace a hyperlink containing a File:\\ command in excel

I work with Sharepoint 2007 and Excel 2007 In SharePoint I sometimes use a hyperlink with the file command like; (file://\\group.net.dk\sites\S01625\stt\Drawings). This is useful when I want to open ...
1
vote
1answer
71 views

Notepad++ replace .|every 5th line with .}

I got a text that ends on every single line with .| And I need to replace the .| on every 5th line with .}
1
vote
0answers
26 views

How to find and replace lines in one file that match the pattern of lines in another file

I have a scenario with two documents. The first doc has lines of text, and the second doc also has same text with different text before and after this text. They need to be replaced. Doc 1 ...
0
votes
1answer
36 views

Notepad ++ Find word and replace line above and below

Here's my example : class Item478 { position[]={14186.376,18.035046,18340.531}; azimut=-134.41499; id=734; side="EMPTY"; vehicle="Land_LampStreet_F"; skill=0.60000002; ...
0
votes
1answer
52 views

Replace multiple strings in multiple files

I think the title speaks for itself. How can I replace multiple strings in multiple files? For example, I have the following strings: home.php, blog.php, forums.php, contact.php, etc. And I want ...
1
vote
2answers
157 views

How can I replace around a wildcard in a regex search?

I'm trying to comment out all of the variable type declarations in a script I have, but I've run into this problem a few other times. I'd like to match a string, followed by a variable name, followed ...
1
vote
1answer
22 views

Vim replace occurences of word with and without first capitalized in one S&R command

eg I have this peace of Java code public String setType(String newType) { this.type = newType: } I select all of it and I would like to search and replace type by model, but regardless of the ...
0
votes
0answers
11 views

Upping all seconds of X value

I have a subtitles file. What regex should I use in Notepad++ to up every line of 2 seconds? 00:01:15,444 --> 00:01:17,613 should become 00:01:17,444 --> 00:01:19,613
0
votes
1answer
61 views

Multiline find and replace wrapper with wildcard inside

I'm trying to put a wrapper around a bunch of fields that already exist. I want to convert this: <div class="editor-label"> @Html.LabelFor(Function(model) model.FirstName) </div> ...
0
votes
2answers
19 views

Notepad ++ : How to Replace as the description

I have lines like these abye/>abye abys/>abys aced/>aced aces/>aces I want it like this abye abys aced aces Is it possible? If it is then please someone show me the way.
1
vote
1answer
39 views

Multiple Find/Replace queries over multiple files: replace one by one

What I want is this (Software can run on Linux or Windows, both are available): Supply a list of files in which strings should be replaced (wildcards ideal, but not mandatory) Supply a list of ...
0
votes
0answers
7 views

Find/Replace high lighting

The default high-lighting that MS Office Excel uses when it 'Finds' a cell is too hard to read. Can it be automatically BOLDed or automatically highlighted, and go away when ending Find/Replace?
0
votes
2answers
38 views

How can I perform search & replace in a text file based on conditions?

I have a large text file (.bib) with lots of double entries for some fields. Essentially, the file is a .bib-file (more info here) which has roughly 1000 entries. The content is structured like this: ...
0
votes
1answer
31 views

How to update range of columns in excel

I have an excel sheet where from one sheets's Id used as reference in next sheet. The Id's are sequential. Like this : Sheet 1 Sheet 2 ID Name ID Sheet_1_ID Text 1 ...
1
vote
1answer
18 views

Expression help for Find and Replace in Notepad++ please

how to replace and but symbol (,) after second number between every five numbers by using replace in notepad++ ? replace 00:00:26092 --> 00:00:30552 00:00:36770 --> 00:00:39933 00:00:40040 ...
1
vote
1answer
87 views

Remove CR LF for all lines that are not followed by a specific number

I have 14000+ lines of a database, that I want to edit with Notepad++. All these lines should start with 1000 and I therefore want to delete CR LF at the end of those lines that are not followed by ...
0
votes
1answer
81 views

Notepad++ : Do batch text replace

I'm trying to create a dictionary file from several webpages I found online. The dictionary indexes headwords so that they can be easily found in search mode. The information in the webpage is divided ...
0
votes
1answer
65 views

Using Notepad++ search/replace PHP code with regexp

I don't have experience in regexp so I hope someone will able to help me to change faster than by hands Need to replace objects to arrays like $variable -> child; OR $variable->child to ...
0
votes
1answer
48 views

How can I delete before and after EMAIL in notepad++?

I have this: :814, 'pera', 'name1@gmail.com', '2ed', '', 'da', 0.00, '195..110.18'), >815, 'danka', 'name2@gmail.com', 'd3d6', '0655566', 'da', 0.00, '212..65.82'), *816, 'ana', ...
1
vote
1answer
124 views

Remove duplicate lines in LibreOffice / OpenOffice Writer

I'm working on a text file in Writer which is basically a sorted list of words and phrases. It contains some duplicates I want to remove. Normally I would use a regular expression in Search & ...
1
vote
1answer
59 views

Non case sensitive search case sensitive replace

How do I search/and replace like this using sed or another tool FOO => BAR Foo => Bar foo => bar That is: Look for foo regardless of case, and replace with the same case pattern. One ...
2
votes
0answers
52 views

How to find and replace hyphens with minus signs in Microsoft Word 2013?

When editing scientific texts, I often have to replace hyphens incorrectly used as minus signs with proper minus signs (i.e. U+2212). I'm working in Microsoft Word 2013 and trying to use a wildcard ...
2
votes
2answers
45 views

Find & replace on a folder of .txt (but only first 1-3 lines)

I have a folder of .txt files. They all look like this: Title: Title of blog post. Tags: tag1,tag2,tag3 Text on the post. Just my thoughts. > A blockqoute Written in *markdown.* Using ...
2
votes
1answer
106 views

Delete text in excel cell with certain format

How do I easily delete strings in excel cells with certain formatting.I want to get cell with formatted string deleted like the second cell The string could be anything the only thing that define ...
0
votes
1answer
59 views

How can I do a recursive find and replace from the command shell?

Using a shell like bash or zshell, how can I do a recursive 'find and replace'? In other words, I want to replace every occurrence of '/path/to/folder' with '/other/dir' in all files in this directory ...
-2
votes
1answer
32 views

Inserting line before lines containing a particular word

How to insert a line before a line ending with a certain word in textpad? For eg: I want to insert a blank line before every line that ends with the word 'Chapter'
4
votes
2answers
499 views

shell script to replace a keyword in a file with the contents of another file

I'm to create a .sh to replace a specific keyword in a file using the contents of an other file. template.html contains a unique string "PLACEHOLDER" it must be replaced with the contents of file ...
0
votes
0answers
77 views

Is On-The-Fly string replacement possible using GreaseMonkey and Firefox

I have looked for means to stop Brightcove videos from autostarting in Firefox and have come to the conclusion it isn't possible without external programming via something like Grease Monkey. However, ...
0
votes
1answer
61 views

Selective Find & Replace to pretty up my C code in Eclipse or Notepad++

I am working on a old C code which have debug statments like this: debug(1, "SomeDebugStmt %s %d", someString, someNumber); ... debug(2, "another SomeDebugStmt number 2 %s %d", anotherString, ...
1
vote
1answer
217 views

How can I replace “/>XXXXX”/> with "/> within a selection

I have a CSV file which I am editing with Notepad++. There is a section of about 500 consecutive lines where I want to replace "/>XXXXX"/> with "/> where XXXXX are numbers. Is there a way to ...
1
vote
1answer
273 views

How do I remove HTML from MS Word 2010 document with Find/Replace Wildcards/Regex?

I found a website to help me choose domain names. I have my shortlist which I can't export, but I need to share the list with some other team members first. It also won't let me copy and paste the ...
0
votes
1answer
74 views

Replacing subString in an array with bash

What I got: array[0]="Programm is Running" array[1]="programm is down" What I want: array[0]="Programm is \e[0;32mRunning\e[0m" array[1]="programm is \e[0;31mDown\e[0m" This will make things a ...
-1
votes
2answers
41 views

Adding characters at the end of multiple lines [closed]

What I have: hello What I want: hello1 hello2 hello3 hello4 hello5 But with around 1500 numbers and the word isn't hello. I want to use Notepad++ for this. I don't wanna have to do find: $ replace ...
2
votes
1answer
311 views

Use perl to do multi-line replacement [closed]

I have to do some replacements in many *.c files. I want to do the replacement like this: original: printf("This is a string! %d %d\n", 1, 2); result: print_record("This is a string! %d %d", 1, 2); ...
0
votes
0answers
249 views

Can't Find/Find&Replace “Purple, Accent 4, Lighter 40%”, all other colors work - Excel 2007

I have a several large Excel tables that I am managing for my current project. Whenever a metric or value in the table changes, I indicate the change by changing the background color of the cell for ...
0
votes
1answer
28 views

Replace '-' char using sed

I have a text file, quite similar to this one: JACK BLACK 123456 -1245368 - BRIDGET RED 1245 548425 + JOHNNY HOMUSS 55482 -4325 - I wanted to use a sed command ...
0
votes
1answer
31 views

grep and search and replace in linux accepting parameters with /

I'm trying to find and replace the contents of a file using grep and sed. grep "#!/bin/bash" ./ | sed xargs -i 's/#!/bin/bash/#!/usr/bin/env bash' How do I make sure that the string #!/bin/bash will ...
0
votes
1answer
253 views

Microsoft Word wildcards

I have a document that has the word "The" capitalised in many places it shouldn't be. I wish to change "The" in those cases, to "the". I need to change any instances of "The" that are not at the ...
1
vote
1answer
95 views

Notepad++ replace every 3rd and 4th iteration

I'm using notepad++ I'm wondering if it's possible to replace every 3rd and 4th iteration in lines of HTML. The original code looks like: <div class="ui-bar ui-bar-d" <div class="ui-bar ...
0
votes
0answers
66 views

Search and replace with different formatting style

In LibreOffice or OpenOffice Calc spreadsheet, is it possible to search-replace while changing formatting of the replacement text to subscript or superscript at the same time? I have a spreadsheet ...
0
votes
1answer
32 views

replacing 2 different words with each other [closed]

I want to replace 2 different text sentences with each other using only Find and Replace which you find amongst the most common word processing packages. For example let say I want to replace: ...
3
votes
2answers
229 views

How to format a string substitute, or a text line, in Vim?

Is it possible to format the replacement string when substituting a match with Vim? Say I have a file with a 2-column table, where the entries in each row are separated with a space. The entries (and ...