Questions tagged [replacement]

60 questions
10
votes
2 answers

How to replace a USB-C hub plug?

I got a USB-C hub with a broken plug (the end which is inserted in the computer) from a friend. Since the connector was completely destroyed inside, he did cut the cable behind it (probably that wasn't too smart...). Now I'm trying to find out which…
Chris H
  • 109
3
votes
1 answer

Color of the highlight of the found word is too faint to see in Word 365

When I use the "Find and Replace" feature, the word that has been found is highlighted in a very faint gray such that I can't see it very well. How can I change the default color that MS Word uses to highlight the word that it found? My steps…
3
votes
2 answers

Powershell - replace text after wildcard, with nothing?

I am using a Powershell command in a Windows batch file to search for a text string like this: foo=1 (where 1 could be anything) I know .*? works as a wildcard in Powershell. The below snippet isn't the full command, I have only put the relevant…
bat_cmd
  • 581
2
votes
4 answers

Using tr from Coreutils for Windows

I have to transform the content of a file from \ to \\ on Windows in a script. So I got Coreutils and tried to use tr \ \\ file_out on Windows CMD, but \ in file_out remains \ instead of being converted to \\. The file contains LFs (\n)…
R. Nec
  • 179
2
votes
1 answer

Replace text surrounding a wildcard in Notepad++

So, many years ago when I started writing PHP code, I learned to format information sent from a form as such: $_POST[itemnamehere]; Whether that was right or wrong at the time, it worked. However, with newer versions of PHP, the format needs to…
2
votes
1 answer

MS Access replace function is not giving the expected result

I am concatenating two fields, however in some cases the second field begins with \, but not always. I'm trying to remove the possible extraneous \ using replace. stDigitalFolderLocation = stDigitalLocation & "\" &…
Ali Kayn
  • 51
  • 2
2
votes
1 answer

Replacing text in Microsoft word with wildcards

In Microsoft Word, I am trying to eliminate time stamps formatted as [00:33:11]. I used the wildcard search [*] but this does not work. Can someone explain how to do this correctly?
user402525
  • 139
  • 2
  • 6
2
votes
0 answers

Replacing RAM chipsets

Dears, I have a laptop with 4GB of RAM. I'm looking to upgrade to 8GB of RAM. The problem is, the current RAM is PC3-8500F and I can't find it in the local market. All I have found is the PC3-8500 and PC3-8500S.. I'm afraid if I buy any of these…
sikas
  • 264
2
votes
1 answer

SED find and replace by keeping indentation

I can't seem to find an answer, I am trying to find and replace a text. For example, find newName: and replace it with a variable that expands. I tried: sed -i "/ newTag:/c newTag: $IMAGE_TAG" This one removes indentation and adds double quotes…
Turgut
  • 21
  • 1
  • 3
1
vote
0 answers

How do I delete 1 of 2 One Drives from a Dell laptop?

My previous job was remote. Once my contract expired, they let me keep the laptop provided. I am able to use it but a message requesting me to log in into my previous job's drive pops constantly. I have my own personal One Drive installed but need…
1
vote
0 answers

Replace 2 of 3 hyphens in a filename with SPACE hyphen SPACE in Powershell

I have been attempting to modify the following example given for a similar question in Powershell, to match my own needs. Running the example works fine. Please could you assist in how to change the code for my needs below? Example given: ~$test =…
Adam W
  • 11
1
vote
1 answer

Sed match and replace only certain characters

I have mutliple strings in very similar format. (#1111111) (#4444444) I was trying to use sed to provide an output: 1111111 4444444 I have tried: sed 's/(#[0-9]+)/^[0-9]+/g' which seems to match ok, but the replace is not working.
PW123
  • 13
1
vote
1 answer

Notepad++ How to copy the last x characters of every line to the end of the same line?

Example- This: Example/Images/1234567 Needs to become this: Example/Images/12345671234567 1234567 is a random string of 7 alphanumeric characters on each line.
1
vote
2 answers

How to change random domains to a simple domain using Notepad++

I have a file with a random domains like this: host-name estkowjf.tradicebk.cz domain-key smtp,*,/home/pmta/keys/dkim.pem host-name …
1
vote
2 answers

Wildcard search and replace in Notepad++

I have many documents consisting of text where words hav become incorrectly hyphenated. Like; be-come; mons-ter; any-thing etc I can search for the place where this has happened using; \l-\l any lowercase character and any other lowercaser character…
1
2 3 4