Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
2 answers
123 views

I'm working with a data frame where the color of an object (red or green) was recorded in ordinal classes corresponding to percent coverage. I am looking to replace all the classes with their ...
Wren's user avatar
  • 41
-2 votes
1 answer
117 views

I’m developing a Qur’an search application that allows users to search for Arabic words and find their occurrences across the Qur’an. To improve accuracy, I added a feature that removes Arabic ...
Salma Ahmed's user avatar
0 votes
2 answers
105 views

In a Quarto book, I mention R functions as back-quoted strings in text like this, always ending in () test <- "The functions `lm()` and `car::vif()` are good test cases" I would like to ...
user101089's user avatar
  • 4,083
0 votes
3 answers
167 views

Question I am trying to find a string across multiple files using ripgrep where the string has lots of characters that would need to be manually escaped if I were to subsequently replace the string ...
Jared's user avatar
  • 714
0 votes
0 answers
40 views

I want to define a map for a several-words expression. In ~/.config/nvim/init.vim : :map abc a-b-c works perfectly well. But I want to do something like :map a\ b\ c a-b-c If I type "a b c"...
Laurent Claessens's user avatar
0 votes
2 answers
290 views

The current implementation takes on average 10-15ms to run each time it is called (timed using the Stopwatch class before / after the call. It will be called on average 100 times per minute. The input ...
Wes Price's user avatar
  • 388
0 votes
0 answers
19 views

I need to process some data in python dataframe. The column "description" includes some special cases need to be removed. In following example string: "LEATHER SEATS (REQ: include (Full ...
Wennian Li's user avatar
2 votes
1 answer
58 views

I've noticed a bit of odd behavior with the -replace command in PowerShell, and I'm just wondering if anyone out there can tell me what's going on. I was writing some code to make sure that a new ...
Ryan London's user avatar
2 votes
3 answers
197 views

I have been trying to update configuration settings in a pi-hole.toml file. After attempting lineinfile, it landed me on the replace module as the more appropriate to use. But I haven't had any luck ...
Eschin Tenebrous's user avatar
0 votes
1 answer
71 views

I have a maven based multi-module Java project. The root directory consists of various sub-modules as well as other directories which holds scripts, configurations and documentations files. There are ...
pankaj_ar's user avatar
  • 765
2 votes
1 answer
175 views

I want to replace all patterns 0 in a string by 00 in Python. For example, turning: '28 5A 31 34 0 0 0 F0' into '28 5A 31 34 00 00 00 F0'. I tried with str.replace(), but for some reason it misses ...
Zorglub29's user avatar
  • 9,389
1 vote
0 answers
71 views

With the change from Font Awesome 5 to 6 in my Angular project many of the keywords for the icons changed. I need a Powershell script to replace tham all inside the .html files. A list with all ...
RoastInHell's user avatar
0 votes
0 answers
31 views

I'm doing some maintenance on a C# WinForms app and noticed that code similar to that below appears in several places: foreach (DataRow rowSubs in subsList) { internalSubName = rowSubs[...
AlanR's user avatar
  • 1
0 votes
0 answers
37 views

I am new to AngleSharp. I am processing text in the desired tags in html documents. I select tags-elements with text, then change the text in each tag in the selection. How then to replace the changed ...
user30267781's user avatar
-4 votes
1 answer
67 views

I have following python code: import json data = {"name": "John", "age": 30, "city": "New York"} print(data) json_string = json.dumps(data, indent=4) ...
Ladislav Zitka's user avatar
0 votes
0 answers
96 views

Lua table (ref) index changes its values without assigning any to them. Why does ref table change its values after assigning it to tab[c] or using string.match()? The actual behavior is that the ref ...
Jepamb's user avatar
  • 1
3 votes
2 answers
100 views

I'm working on a kotlin project that needs to process some phone number data and convert it into a format suitable for a third party API to consume. The requirements are: No non-digit characters ...
pbuchheit's user avatar
  • 1,839
2 votes
5 answers
197 views

I need to replace all instances of a character (period in my case) in 1+ portions/segments/ranges of a string. I'm using Bash on Linux. Ideally the solution is in Bash, but if it's either not ...
codesniffer's user avatar
  • 1,226
-3 votes
1 answer
139 views

I need a PCRE Regular Expression that will find and select a specified phrase at the beginning of sentences, only if it is preceded by a sentence that also contains the phrase. The first sentence ...
Stan Duncan's user avatar
5 votes
1 answer
141 views

Overview I've created a basic text editor with a "Replace all" feature. However, I'm facing an issue where the output indicates replacements were made even when the text remains unchanged. ...
Mori's user avatar
  • 7,092
1 vote
1 answer
70 views

I have two text files, File 1 is a list of names of meshes with a path sometimes the name is the same as the path name and can contain numbers. I need is to insert File 1 filename/path onto every ...
S.T.A.L.K.E.R's user avatar
0 votes
2 answers
57 views

I have a dataframe of 10899 rows × 32 columns where there are many cells containing data that start with -9. e.g. -99.0, -9, -9.678, etc. How can I create a new dataframe from the original where all ...
Ramon Mendez's user avatar
6 votes
6 answers
225 views

I have a dataset like this: tdf <- data.frame( A = c(1, 2, 5, 4), B = c(NA, 3, 4, 5), C = c(NA, NA, NA, NA), D = c(NA, NA, NA, NA), E = c(10, 20, 30, 40)) And I need to ...
Hard_Course's user avatar
2 votes
1 answer
120 views

I have a range over a multi field structure. The fields can only be accessed via operator []. I want to run a replace over one of these fields. I can do this using a range based for loop. Is there a ...
Ludovic Aubert's user avatar
0 votes
2 answers
61 views

I'm making a hangman game. Here's part of the code where a string progress is (potentially) modified with the user input string guess. if (secret.contains(guess)) { System.out.println(guess + &...
Otakuwu's user avatar
  • 228

1
2 3 4 5
621