Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
73 views

I am implement a function to do below two tasks. User have the ability to either run both or run a single task only (handle via check boxes). Task 1 : Replace multiple spaces into a single space on a ...
ApsSanj's user avatar
  • 579
-3 votes
3 answers
327 views

I have a VBA-based tool that basically for each row in the Excel takes a defined word document and performs number of find-replace operations. This has been working well so far, but I am starting to ...
Eleshar's user avatar
  • 547
-4 votes
8 answers
357 views

https://github.com/chmln/sd allows for easy find replace of fixed strings; as does https://github.com/facebookincubator/fastmod. How do I replicate this simple functionality in POSIX /bin/sh using non ...
Samuel Marks's user avatar
  • 1,940
0 votes
0 answers
74 views

I'm learning regex on regexone.com. In exercise 2: Matching Phone Numbers, The same patterns work differently between regexone.com and VSCode's find/replace feature. The exercise shows these test ...
Varity Colgate's user avatar
0 votes
1 answer
70 views

I have a workbook with multiple sheets. The first sheet, "Task", contains the data. The other sheets are lists for find and replace operations. I have run the Sub successfully, replacing the ...
user27385420's user avatar
1 vote
2 answers
40 views

I have a list of 10 digit numbers in a txt file. I want to put the same character in the beginning of all rows using regex, without changing the numbers. I also want to put the character at the end of ...
Lime118's user avatar
  • 11
1 vote
1 answer
48 views

I need to find everything between parentheses and turn it into a hyperlink in which the string is "[Pmcid:"the thing"]" and the address is a url with "the thing" at the ...
Amirali Pm's user avatar
0 votes
0 answers
26 views

I have an xml payload as shown below. I need to be able to find the property "ACME Account", and then the next value property value, replace the number with a new number. So in the example ...
Joe's user avatar
  • 201
-1 votes
1 answer
46 views

I have a list of things and want to get them in two seperate colums. Can I do that by using search and replace ? or How do I do this ? Here is an example How it is How it should be
Mcoc Garrot7's user avatar
0 votes
2 answers
143 views

I'm trying to create a macro that replaces a piece of text with specific conditions. For example: if it's shown in the document "Summary nº 123" then keep the text the way it is, but if it ...
luan_coder's user avatar
1 vote
1 answer
61 views

I am using below mentioned code for finding a string in a file(Constants.TcGVL), assign my desired value(%select%) to it and copy to a new location: Call :ValueSubstitude "%root%\LeafSpring\...
FAD's user avatar
  • 11
1 vote
1 answer
171 views

I want to remove the timecodes from the Microsoft Word Document. I have following pattern: 00:00:00:00 - 00:00:00:00 I am using this script: [0-9]{2}\:[0-9]{2}\:[0-9]{2}\:[0-9]{2} - [0-9]{2}\:[0-9]{2}\...
Viraj Shah's user avatar
0 votes
2 answers
71 views

My current attempt: Find: (^$\n[\s]*.*\{|^$\n[\s]*.*@.*$) Replace: /***/$1 Problem: works well except for the fact that the javadoc boilerplate is not indented. What change would I implement to indent ...
kesarling's user avatar
  • 2,334
0 votes
1 answer
373 views

Is there any workaround or extension to prevent Visual Studio IDE 2022 from scrolling my view when clicking the "Replace Next" button in the Find-and-Replace related windows? I use REGEX ...
DigitalDesignDude's user avatar
1 vote
1 answer
2k views

I am working with VBA in an xlsx document, and I am attempting to alter a separate rtf document to replace the words in a specific range between two tags on the document. I have managed to replace all ...
BJennin4's user avatar
0 votes
1 answer
165 views

I want a find/replace script in Google Sheets App script using RegEx to find and replace over multiple columns. I can only either find and replace using RegEx in one column or find and replace over ...
Bri's user avatar
  • 3
0 votes
0 answers
174 views

I have a small problem with PDF files that I export from Figma. I make a text link in Figma file I export PDF with this text I open PDF in Acrobat (or whatever viewer) and I see my link in black box (...
toomze's user avatar
  • 1
1 vote
2 answers
2k views

Replacing in selection is a crazy difficult process - and it apparently does not even work. Getting to the point of even having Replace in Selection enabled we need to: highlight the area Hit Find ...
WestCoastProjects's user avatar
0 votes
1 answer
423 views

Is there a way of taking the native function of changing all occurrences within a file at the same time? Let's say change all FR1 to FR2 by selecting FR1 and pressing Ctrl+ F2 then typing FR2 and ...
Juan Ojeda's user avatar
0 votes
1 answer
176 views

I have created a RegEx code to find the following: - strings, or parts of strings (at least 5 consecutive words), that appear at least twice in the whole scope of text - the whole scope of text is in ...
NotAColdSun's user avatar
0 votes
1 answer
119 views

I have a chart where I need to remove certain keywords from column C- Range C3:C5000(some cells are blank). The words that needs to be removed are placed in column A- Range A3:A100(some cells are ...
Mit Patil's user avatar
0 votes
1 answer
943 views

The true problem I'm trying to solve: I've pasted text including formulas from one Excel workbook to another, but I don't want to reference the old workbook in the formulas The question I'm asking: ...
lnicholsonmesm's user avatar
0 votes
0 answers
60 views

I have a text file in which there is a line with the category and then all items of that category in lines below it. This is followed by 2 empty lines and then the title of the next category and more ...
nyghts's user avatar
  • 1
0 votes
1 answer
559 views

I have a question I need to code thousands of lines and instead of doing it manually I want to automate my work flow. So let me present you with some screenshots and a text example of what I am trying ...
GameServersHub's user avatar
0 votes
1 answer
213 views

When running the VBA code below on a folder that contains approximately 100 rtf Word documents, I receive the following VBA error. "Run-time error '4605' This method or property is not available ...
Michael 's user avatar
0 votes
1 answer
424 views

In macOS I find the below command line quite useful and efficient to find/replace across multiple files (I know there are other ways to do it --for instance, using sed-- but this one is good enough ...
Sal's user avatar
  • 117
0 votes
1 answer
96 views

Currently I have a workbook that has thousands of formulas in it. When I created the sheet there was an unknown variable that was yet to be decided upon. So I chose to place (,"**",) in the ...
MJobbson's user avatar
  • 183
1 vote
1 answer
2k views

I have a list of over a thousand phone numbers in a google sheet. Many of these numbers have a plus symbol in the start. Google sheets is automatically converting this numbers to Formulas by replacing ...
usama tahir's user avatar
0 votes
0 answers
151 views

I have a lot of email templates stored in MySQL database. Inside i have a table which stores the MJML code of the template. Now I want to update a few lines of code in all of my emails. And I want to ...
Alex Hammerschmied's user avatar
0 votes
1 answer
285 views

I'm trying to write into my powershell script the ability to insert a hostname into a file like tnsnames.ora. The file I am working with has a default value in that field, and I can't rely on what ...
PACSMAN's user avatar
1 vote
1 answer
1k views

So I need to make changes in multiple cells in a Jupyter notebook. One of these changes is inserting a newlines in a code line. fig = fig.update_xaxes(showgrid=True, gridwidth=0.3, gridcolor='...
Abhishek Sourabh's user avatar
0 votes
1 answer
58 views

I have a macro to ensure large numbers have commas in the correct locations. My routine to insert commas works, but also includes dates, street #s, etc. (e.g., 15 January 2,022 and 1,234 Smith Street)....
Dave Gaines's user avatar
2 votes
0 answers
2k views

After a find+replace on a large project, I realized I used a static class from the project not already imported in all files. Is there any functionality in Intellij that is equivalent to opening all ...
gabriel's user avatar
  • 357
2 votes
1 answer
1k views

My case: I have a lot of search inputs. Often I need to clear this history, make two or little more search inputs and switch between them. I have only found a way to solve my problem with Windows ...
rozhnovds's user avatar
0 votes
0 answers
317 views

I have a column imported from something else where money values are expressed as 123.00DB I need to convert them to something more useful, which needs to be numeric, eg -123.00 I want to do this with ...
David's user avatar
  • 1
2 votes
2 answers
904 views

Does anyone know how to replace several different Digits all at once in notepad++. For example, I have 4 different Digits; 1000x1000.jpg 750x750.jpg 1000x750.jpg 750x1000.jpg I want the result like ...
EnigmaOs's user avatar
2 votes
3 answers
182 views

I have below resultant php.ini file, after I was able to remove the comments & spaces thro' some simple Regex find/replace steps: [PHP] engine = On short_open_tag = Off .... .... [CLI Server] ...
Vicky Dev's user avatar
  • 2,253
0 votes
0 answers
334 views

I have an array of words, and I want to be able to execute selection.find for any of them. The array is just the product of a previous string, so myarray() = split(mystring, ", ") So, for ...
Billy's user avatar
  • 3
0 votes
1 answer
148 views

Sample environment: Dictionary = {"camel":"create-para","donkey":"monkey","cat":"dog"} cwd = os.getcwd(".") for files in cwd ...
cphysicixt's user avatar
0 votes
2 answers
81 views

I am trying to write a script to copy contents of cell (in a2) and paste this into the 1st empty (of text and formulas) cell on row 2. Ones that I have tried to copy and use are to do similar but ...
Ben C's user avatar
  • 61
0 votes
1 answer
918 views

when I run find and replace through vba it changes my dates to us format. So I have a column of dates, but they are all prefixed with text that I want to remove (like so Invoice Date:dd/mm/yyyy). When ...
Barneschild's user avatar
1 vote
1 answer
171 views

I'm trying to code some routines in VBA for Word that use regular expression to search for certain elements in documents. I got this code (please disregard for now that it's coded using Selection, it'...
Michael's user avatar
  • 11
2 votes
1 answer
91 views

An example describes it better. Suppose you have a structure like this: <h1>TITLE OF HEAD 1</h1> <table> <tbody> <tr> <td class="one"&...
stst's user avatar
  • 83
2 votes
3 answers
263 views

I have a VBA Macro. In that, I have .Find Text = 'Pollution' .Replacement Text = '^p^pChemical' Here, '^p^pChemical' means Replace the Word Pollution with Chemical and create two empty paragraphs ...
Noob-Programmer's user avatar
1 vote
1 answer
248 views

I want to Find and replace text which is only after a paragraph. Text in my word document: As you can see, I want to replace the Word Ocean which is at the end. So, I want to replace the word 'Ocean' ...
Noob-Programmer's user avatar
-2 votes
2 answers
190 views

I have a very big macro Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "asa" .Replacement.Text = "fsa"...
Python-lover's user avatar
-1 votes
1 answer
1k views

I was provided the code below through the Microsoft support service to help me go through and batch "find and replace" specific text in a large number of word documents. The use case for ...
Ryan's user avatar
  • 1
0 votes
1 answer
155 views

Hello I am facing a problem which is to change the old routing style of a laravel project to the new style. But due to the size of my routing file it will take me a lot of time to change all this. So ...
Wendinmi's user avatar
0 votes
1 answer
338 views

I am not able to understand why this below script not working on google sheets, function Find_Multiple_Replace_Multiple(){ var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Data&...
user avatar
0 votes
1 answer
201 views

My goal is to highlight text from one open parenthesis to the next open parenthesis, if there is no closed parenthesis between them. Sub HighlightNestedParentheses() Selection.Find.ClearFormatting ...
user10229348's user avatar