Questions tagged [character-replacement]

72 questions
0
votes
1 answer

Remove \n from specific lines Python

I have a function where I am converting pdf files to text files. It's all working fine, except I have to clean up the paragraphs where there are bullet points by removing \n from the end of each string line that starts with the word bullet_point. I…
0
votes
0 answers

Replacing a Character in .csv file only for specific strings

I am trying to clean a file and have removed the majority of unnecessary data excluding this one issue. The file I am cleaning is made up of rows containing numbers, see below example of a few rows. [Example of data][1] [1]:…
0
votes
3 answers

Having problems troubleshooting my for statement in java

I'm trying to print ooed (changing the name from Fred to ooed), but my program won't change the first letter ('F') while changing the rest. String name = "Fred"; String namea = name.replace('a', 'i'); String nameb = name.replace('n', 'i'); String…
0
votes
1 answer

Swift: How to access iOS text replacements from keyboard extension?

I am building a custom keyboard, and I want to use the built in text replacements feature. The text doesn't change automatically for my keyboard, yet other third party keyboards do work with text replacements. There is a…
Grant Oganyan
  • 352
  • 1
  • 11
0
votes
1 answer

Forward slash "/" in string converted to "/", is that platform independent behaviour?

I have a Python script that reads an html into lines, and then filters out the relevant lines before saving those lines back as html file. I had some problems till I figured out that a / in the page text was being converted to / when saved as a…
0
votes
2 answers

Character Replacement: Break-Lines

I have a few areas in an application of mine that I have