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

learn more… | top users | synonyms (1)

3
votes
1answer
419 views

Can I delete any line with a given search string?

In Vim, I'd like to search for lines with a given string, then delete them. Specifically, I'd like to find lines with the LaTeX commands \begin{frame} and \end{frame}, and delete them. =
3
votes
2answers
7k views

How to search & replace within a cell value?

I have a cell A and its value is 122abb12. In another cell B, I want its value to be the value in cell B but all 1 should be replaced by I - value in cell B should be I22abbI2. What is the function ...
3
votes
2answers
73 views

In Excel how can I search for #N/A cells?

I'm trying to go to the first instance of a #N/A cell, the result of a VLookup that failed. I know I can conditionally change the value when the result is #N/A, but what I want to do is just locate ...
3
votes
1answer
152 views

replace string with proper tab character in Notepad++

I have a string like this: "001234","123","","Automated Letters""\t""Arrears Advice","\\PATH\FILE.doc" instead of Automated Letters""\t""Arrears Advice I need Automated Letters Arrears Advice ...
3
votes
1answer
2k views

Saving part of found term when replacing in Notepad++

I want to use Notepad++ to find/replace large chunks of code, but a hefty part of it deals with arrays. How can I put a "variable" in Notepad++'s Find/Replace window so that part of it can be saved ...
3
votes
1answer
7k views

Delete all text before and after a certain string

I have some URL like the following http://www.SOMEURL.com/first-category/1343381-example-text-text-text-text-2000-a.html What I want is to simple delete all of the text before and after the number ...
3
votes
2answers
4k views

Notepad++ find and replace expression help

I want to find all content between two characters, say A and B: Asd;lfksjd;fsdfjs;ldfkB which would be sd;lfksjd;fsdfjs;ldfk and replace them. How would I write this expression?
3
votes
2answers
2k 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 ...
3
votes
2answers
35 views

Notepad++ RE Search and Replace

Can someone explain why the following record: 1234 4567 blahblahblah becomes blahblahblah When Search/Replace applied (NP++ v6.9) with: Replace:^\d{4}\h with:(nothing) (Reg Exp) radio on Any ...
3
votes
2answers
801 views

How do I set the default search direction in Word's Find and Replace from `down` to `all`?

How do I set the default search direction in Word's Find and Replace from down to all? I really hate how "helpful" Word is by asking me constantly if I want to search the rest of the document.
3
votes
2answers
12k views

Using sed to replace string with special characters in XML file

I am having difficulty getting sed to replace a string of text in an XML file, despite the fact that I have no trouble using grep to find that same string. Since the new string and old string to be ...
3
votes
2answers
1k views

Microsoft Project 2003 - How to do a “find” in non-expanded nodes?

I am using Microsoft Project 2003 find command. When I choose ctrl+f and type a string to search for, MS Project only appears to search tree nodes that are expanded. Is there a way to get MS Project ...
3
votes
1answer
54 views

How to replace Unicode Character in Notepad++

I have got a .xlf files that looks like the picture below: I wonder how do I search and replace unicode character "xE5" to "æ" I thought I could search for:^0145 =xE5 and replace "æ", that did not ...
3
votes
2answers
982 views

How do I replace all WOrds with FAlse SEcond LEtter Capitalization in lots of Word documents?

I need to mass-correct large amounts of documents in German. I need to handle several hundred pages of text. I have written a macro to do mass find-and-replace operations on common spelling mistakes. ...
3
votes
1answer
3k views

How can I automate modifying key/value pairs in a shell script?

I often want to automate this sort of task in a shell script: if the line: SOMEKEY=SOMEVALUE exists in a file, then change it to SOMEKEY=SOMEOTHERVALUE otherwise, append the line SOMEKEY=...
3
votes
1answer
713 views

How to do a search-and-replace in Opera for textarea context?

How do I do a search-and-replace in Opera for a textarea's context? I have a web page with html form and I need to input and edit large text in this form. Easy example: Stay on this page, scroll ...
3
votes
0answers
121 views

How do I stop command-f from sharing state across applications on Mac OS X (10.8.2)?

If I have a find bar (command-f) open in two applications, and I change the text in one, the text in the other changes to match as soon as I tab over to the second application. Is there a way to turn ...
3
votes
1answer
489 views

Find Replace - Args out of range?

Using: GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-03-25 on allspice, modified by Debian I am trying to do some simple find and replace. Not a big deal. I'm not even using ...
3
votes
1answer
687 views

Something that can search and replace a hex string but for multiple files?

Hi I'm looking for a hex editor kind of thing but for multiple files? Can Windows Grep do this or does it only handle text strings?
2
votes
2answers
5k views

How to replace one line to two lines or more on a text file using the “find and replace mode”?

Right now I'm developing a script with vbscript and I need to find one specific line(with a lot of occurrences) on a 5k lines source code and replace it to two new code lines(1 line to 2 lines ...
2
votes
2answers
2k views

Textmate: regular expression to replace matches preserving case?

How can I use a single search / replace to replace all words town with village preserving the case of the first letter in this sentence: Towns are small cities. I live in a town.
2
votes
2answers
306 views

Remove colons (:) from illustration index in Microsoft Word 2010?

How can I remove all the : from illustration index in Word 2010? FIG. 2.4: Representação em RDF/XML da FIG. 2.3 27 FIG. 2.5: Ilustração da Utilização do RDF com o RDFS 28 But I need this: FIG. ...
2
votes
2answers
2k views

How to replace a specific character between specific words?

Would you be able to help me in finding out how I can use the Notepad++ Find/Replace function to replace a specific character between specific words. Please see the example below, I would like to find ...
2
votes
1answer
92 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 ...
2
votes
4answers
1k views

Extracting text from a cell in Excel

I have a long list of items in Column A that includes a code and descriptive text. I need to separate the code from the text description. <ABC,1122, A1> - This is the text description The ...
2
votes
5answers
6k views

How to replace html using dreamweaver's “find and replace”?

I want to do find and replace for example . In dreamweaver's find and replace <p><strong>Business Development</strong></p> into <h4>Business Development</h4> I have to change in ...
2
votes
3answers
547 views

How to identify horizontal tabs in Excel and replace it

I have thousands of data in my excel file, they are scraped data from various websites, initially stored in CSV files then migrated into Excel. This data is for use of my web server. Now my problem ...
2
votes
2answers
976 views

How do I find this character(by unicode search) in notepad++ ﻁ (\uFEC1 and only that character)

How do I find this character(by unicode search) in notepad++ ﻁ If I go to charmap and I pick this character I type FEC1 in the unicode search box and hit ENTER and it finds the character I look ...
2
votes
2answers
196 views

Notepad++ regex replace

id like to replace all the random numerical values to a solid value of a code random values ex: DELAY : 214 DELAY : 1243 and id like to replace all them to DELAY : 1
2
votes
2answers
347 views

Replace 'her' with 'him' and 'his'?

Is there a software/script or any way I can replace all the her in a document with him and his wherever which one's applicable respectively automatically? example Calls her and tells her that her ...
2
votes
2answers
2k views

Notepad++ RegEx does not work with min and max occurence

I want to find two or more (max 9) white-space characters and replace it with newlines. My RegEx syntax is as follows: [\s]{2,9} However, Notepad++'s RegEx doesn't seem to work with curly braces. ...
2
votes
7answers
9k views

Find and replace text in multiple files

I’m hoping someone might lend their time in helping me create a batch file or similar for finding and replacing text in several files. I have tried many “search and replace” utilities but have not ...
2
votes
1answer
2k views

Using -replace on pipes in powershell

I want to test out a replace before I use it, so I'm trying to write a quick online command to see what the output is. However, I'm not sure what the syntax is. What I want to do is something like ...
2
votes
2answers
6k 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 ...
2
votes
3answers
63 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 <http:...
2
votes
2answers
823 views

Microsoft Word 2010: “replace all” with same word + something else

I want to find all bolded words and replace them with the same word, unbolded, but with a symbol after it indicating that it was bolded. So for example Yesterday, love was such an easy game to play. ...
2
votes
1answer
444 views

Add constant value to numeric XML attribute

Background Add a constant value to numbers matched with a regular expression, using vim (gvim). Problem The following regular expression will match width="32": /width="\([0-9]\{2\}\)" Question ...
2
votes
2answers
144 views

String replacement in Windows batch

I am trying to understand how string replacement in Windows batches actually works and having trouble. @echo off set var=wild set varnew=%var:l=n% echo var is: %var% echo varnew is: %varnew% does ...
2
votes
2answers
91 views

Way to get Microsoft Word to remember “Find and Replace” entries for auto complete the next time after closing Word?

After you use “find what”, or “replace with”, the entry will be remembered for auto complete the next time. When you quit Microsoft Word, the suggestions are no longer remembered. Is there a way to ...
2
votes
1answer
6k views

Multiple find and replace in a word document

I want to do a series of find and replace operations. Unfortunately, the documents I have to work on are in Word (.docx) format so I cannot script this. These are book chapters so formatting is ...
2
votes
2answers
812 views

Find And Replace strings containing a caret

Consider a string to be replaced in Microsoft Word Foo^Bar Using the Find and Replace dialog, Word interprets a caret(^) character as a control character to help find predefined elements in your ...
2
votes
2answers
609 views

Regular Expression Help Needed in Notepad++

I need to know the syntax for a regular expression (notepad++) to help me find/replace every instance of following string in a text document the string is as follows Where do you want to go next? ...
2
votes
3answers
120 views

using vims pattern-multi-items {n} to match the 5th space in a line

With this entry from our crontab 1 3 1 * * find /var/log/tomcat/* -mtime +61 -type f -delete I want to match the 5th space char so I can separate the command part from the time field part. Cron ...
2
votes
1answer
2k views

Removing HTML tags in Notepad++

I'm trying to remove some tags using the Find and Replace feature of Notepad++. What I'm trying to remove for example is <num> and </num>. Right now I'd input <num> and replace it, ...
2
votes
1answer
3k views

Komodo Edit: How to use Tabs and Carriage Returns in Find/Replace?

In NoteTab Pro, I could use tabs and returns in the find and replace dialogs by using ^t and ^p. Now I have switched to Komodo Edit which is much more powerful, and I can't find any way to search for ...
2
votes
2answers
862 views

Find & Replace in blogger

(I just learnt that Yahoo are shutting down Geocities, this is a bummer as I used my account there to host two icons, in the days when Blogger didn't upload gifs. Now those two icons are referenced in ...
2
votes
1answer
88 views

Replacing strings of (Hexidecimal) zeros in Notepad++

I have binary code that have 4 sets of zero strings (00 00 00 00) and also have sets of 3 (00 00 00). I want to get rid of the sets of 4. (replace with nothing.) When I do 00 00 00 00 in "find", it's ...
2
votes
1answer
372 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
1answer
306 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 ...
2
votes
1answer
97 views

How can I add an additional line break (paragraph return) to each line break found in an Open Office Document?

I have tons of text that runs together paragraph breaks like so: off the wounded, and with the same calmness and composure as before resumed the watch over his armor. But these freaks of his guest ...