Find and Replace keeps crashing

I am using a Find and Replace, simple VBA code as below: Sub MultiFindNReplace() 'Update 20140722 Dim Rng As Range Dim InputRng As Range, ReplaceRng As Range xTitleId = "KutoolsforExcel" Set InputRng = Application.Selection Set InputRng = Applicatio...
more »

2017-12-03 23:12 (1) Answers

Search and Replace not saving to file

I am new to Perl been working about a day with it. I am trying to write a script that will go to every .cpp file and .hpp file change the files permission to read and write, while also searching for a string and replacing it. This is what I have so f...
more »

2017-12-01 18:12 (2) Answers

Recursive Find and Replacing String?

My question is about finding and replacing strings in a text file. This program is supposed to find the instances of the word ghost within A Christmas Carol text file and replace them with bunny for ghost, Bunny for Ghost and BUNNY for GHOST. It work...
more »

2017-11-27 06:11 (1) Answers

Find (and replace) styles in Word using C#

I'm coping with finding (and eventually replacing) some text by styles in Word. The idea is, let's say, to convert all "Heading 2" paragraphs to "Heading 1". But I don't know how to find ONLY style, regardless of its contents. Can anyone point me in...
more »

2017-11-26 19:11 (1) Answers

How do I replace a range of characters in Ruby?

With Ruby, how do I replace a range of characters in a string? For instance, given teh string hellothere If I want to replace characters at index positions two through five inclusive with "#" to result in a string he####here How would I do thi...
more »

2017-11-20 04:11 (1) Answers

c# find replace in word

I recently started learning C#. I'm trying to write some of my macros (written in VBA) in C# - actually I'm trying to make a new ribbon for Word with buttons doing some activities... So, I'm trying to make a button doing simple find/replace in activ...
more »

2017-11-19 23:11 (1) Answers

RegEx match with whitespace but exclude in Output

I am trying to match multiple lines in source code between starting and ending markers (<% and %>), but I need the output variable (if that's what it is called) to exclude any surrounding newlines at the end of the matched code block. Because I...
more »

2017-11-18 17:11 (1) Answers

replace an empty numpy string with 0

I have to numpy string array which look like this: [['0', '', '12.12', '140.65', '', ''], ['3', '', '10.45', '154.45', '', ''], ['5', '', '15.65', '184.74', '', '']] What I need to do is to replace the empty cells with a number in order to ...
more »

2017-11-16 10:11 (2) Answers

Using a batch file for find a replace

I have the following batch file, (this is an example, the real one if about 20mb) in size - Code: ECHO Assigning Aircraft Registrations to HEX/MODES codes. ECHO This may take some time.... pause copy input.csv backup1.csv pause call :FindReplace...
more »

2017-11-03 17:11 (2) Answers

How to Create a Notepad++ Regex Expression

I'm looking to highlight all instances within a very large document that contains a Number)spaceLetter For example, 1) The cat in the hat. 2) I like to read. Both 1) and 2) would be highlighted. Essentially I want to find and replace all...
more »

2017-11-01 22:11 (0) Answers

Changing a certain value with an input javascript?

So I have a javascript find and replace code here that finds what you search and replaces with an input. I need the code to find "xxxxxx" without asking for an input so the only input left would be the replace box which would automatically change xxx...
more »

2017-10-28 15:10 (2) Answers

How to replace a string in whole Git history?

I have one of my passwords commited in probably few files in my Git repo. Is there some way to replace this password with some other string in whole history automaticly so that there is no trace of it? Ideally if I could write simple bash script rece...
more »

2017-10-26 11:10 (1) Answers

Eclipse IDE, regular expression search and replace

I am attempting to setup my include statements in a large library. I need to edit specific include paths that start with "C:/Users/..." so the ending of the path is ".h"", and not ".h>" Some paths that do not start with "C:/Users/..." need to keep t...
more »

2017-10-24 07:10 (2) Answers

Textwrangler: How can I Replace \d+ with {\d+}?

I need to find and replace the text [n] with the text \textsuperscript{n}. Where n is a number between 1-99. EG. the text [15] with the text \textsuperscript{15} I am not a programmer but think grep is my friend here. I have tried: Find: \[\d+\] ...
more »

2017-10-23 10:10 (1) Answers

C++ Char Array Find / Replace a char

So basically I have an array which looks like this: char array[25]; I have an 'X' put in there, and 24 'O's. I am trying to create a function where I can find the location of 'X' in the array, so then I can move it whenever a control is typed in. ...
more »

2017-10-16 08:10 (4) Answers

Append Reporter.log with

Any one know how to replace a line with two lines in eclipse? Example: Find:"variable 1"); Replace:"variable 1"); Reporter.log("variable 1"); Note: 1. I have more than 3000 line of to replace 2. The "variable 1" is di...
more »

2017-10-06 12:10 (0) Answers

How to pass current-prefix-arg to this-command

I want to reuse current-prefix-arg when calling this-command. I can imagine ways of capturing its value and passing it to modified functions. But, this doesn't seem like a great solution. How can I reuse it (eg. push it back onto a sort of call stack...
more »

2017-10-01 13:10 (2) Answers

find and replace regex

I need find and replace the numbers (of footnotes) find "14" and replace with "[14]" With regular expression, both in kate and sigil, I can find the digits: so: find = \d\d But I cannot find the way to replace digits: not works: replace = [\d\d] C...
more »

2017-10-01 10:10 (0) Answers