All Questions
744
questions
2
votes
2
answers
89
views
Replace all instances of a character, but only within matching strings
I have a data file in weird foramt that I'm trying to import and wrangle into R. The file is like a CSV in that values are comma delimited. However, there are also text strings containing commas that ...
0
votes
1
answer
63
views
Replace text in cell if specified text in another cell in same row
What I want.
If a cell in column D says emilio pucci or max mara or tom ford and the word sunglasses is in column H within the same row then replace what is in the cell in column E with Marcolin.
If ...
1
vote
2
answers
90
views
convert emoji short name to image using custom function
I have created a function that converts emoji short name to image but I am stuck how do i get emojis short names from a string so the function can convert those to emoji image .
$field_from_db = ':...
3
votes
4
answers
161
views
Add one space after double quotations “, If double quotations are not followed by (Space , “x” , “X” , or “*”)
I need to add one space after double quotations “, If double quotations are not followed by (Space , “x” , “X” , or “*”).
My provided code only works correctly with the first example.
Function ...
0
votes
1
answer
574
views
Ansible - Replace all text between two specified lines in file with ansible.builtin.replace module
I've been trying to replace all text between two specified lines in a configuration file using Ansible.
With this task block, I simply want to remove all text between the two specified lines. In the ...
-1
votes
2
answers
95
views
Dart regex: how to replace matching substring with uppercase?
Replace all lowercase letter starting with underscore to uppercase. e.g.,
hello_world --> helloWorld
hello --> hello
today_is_monday -> todayIsMonday
0
votes
3
answers
36
views
Conditionally remove text from string in R [closed]
I have this vector in R c("993540002_prih_10_new_10153_2.pdf", "993540002_prih_11_old_13369_3.pdf", "993540002_prih_12_older_18217_4.pdf")
I'd like to edit it to
c("...
0
votes
1
answer
13
views
Search and replace values in a text tile based on existence of a third value
We have about a thousand machining files we need to update and I know in the past I have used a search and replace tool of some sort to do conditional searches. In this case, if the file contains a ...
0
votes
1
answer
61
views
NotePad++ - Replace 100+ unique lines in file with new unique lines
I am trying to take a large text file and replace about 140 rows of the data with brand new rows of data. I have all the rows I need to replace in a text file, along with the new rows, but can't ...
-2
votes
1
answer
69
views
How can I use global regex to replace all instances of something without breaking other Javascript functions?
I'm trying to replace all instances of http:/// on my website with / using global regex like this:
$('body').html($('body').html().replace(/http:\/\/\//g,'/'));
It works well, but unfortunately this ...
1
vote
1
answer
87
views
Replace Text in String
I'm trying to write a RegEx expression to replace specific text in a string where parts of the text are variable.
For example, the text strings are the following:
XX ...
-1
votes
2
answers
153
views
replace('\n', '') doesn't work well in python3
Now I fetch texts from a website and try to delete all new lines in the texts.
The text is like below.
'''<style>
p {
color: red;
}
</style>'''
Just a simple html or css code.
...
0
votes
1
answer
329
views
Python pptx change text in textframe
I have a presentation. This presentation contains a slide with a text frame.
The text is: "Tested variable_variant".
I import the presentaion and walk through the shapes of the slide.
I want ...
0
votes
1
answer
111
views
Removing URLs in a text file
I have a text file structured like this, where there are strings of text (containing spaces), and a line break between each message:
message
message
https://...
message
...
Sometimes the messages are ...
0
votes
0
answers
29
views
Expression to pull text from a "Comments" field
I need to pull the text in a comments field into an SSRS report. The text is separate multiple lines and I need it to read as separate lines.
The current code pulling from Crystal Reports is
"=...