About 1,510 results
Open links in new tab
  1. Replace first character - Python Forum

    (Sep-27-2019, 01:57 PM) perfringo Wrote: input() returns string, so no need to convert to string. You need to replace first letter of every word, not only the first letter of whole string. In order to …

  2. replace string inside double quotes - Python Forum

    Apr 26, 2017 · I am trying to replace commas with a '^' in a string that is already quoted. Below you can see input and output. However my code does not replace the string. Any help would …

  3. change backslash into slash in a path - Python Forum

    Jul 21, 2022 · The resulting string was 'D:\My Directory1<BS>in' where <BS> is the backspace character. At no point does the path str include a "\b" escape sequence, so it would be …

  4. Replace changing string including uppercase character with …

    Mar 24, 2019 · python escaping character: atom509: 1: 779: May-29-2024, 08:57 PM Last Post: DeaD_EyE : Text conversion to lowercase is not working: ineuw: 3: 1,360: Jan-16-2024, 02:42 …

  5. Replace String in multiple text-files [SOLVED] - Python Forum

    Aug 8, 2021 · The official dedicated python forum. (Aug-07-2021, 11:45 AM) Axel_Erfurt Wrote: As bowlofred already wrote, make a function and then call it for every txt file

  6. how to convert a string to hex - Python Forum

    Jan 23, 2017 · what is the best way to convert a string to hexadecimal? the purpose is to get the character codes to see what is being read in from a file. i already have command line tools that …

  7. Replace String with increasing numer [SOLVED] - Python Forum

    Aug 8, 2021 · Hello everybody, I have a text-file with multiple strings which I want to be replaced by an increasing number. For example there is there the string 'example' 7 times in it and I …

  8. Remove escape characters / Unicode characters from string

    May 15, 2020 · If I did that with .replace() it would get rid of every backslash of course, so I need a way to get rid of only one backslash everytime it encounters a backslash. The other method is …

  9. Replace string in many files in a folder - Python Forum

    Oct 16, 2019 · The official dedicated python forum. (Oct-14-2019, 07:39 AM) perfringo Wrote: One can use os.scandir() to get list of files in current directory:

  10. Need to replace (remove) Unicode characters in text - Python Forum

    Jan 2, 2018 · Before posting here I resarched the subject of unicode replace, but got nowhere. I am using Python 3 version of Autokey, with which I want to run a script to clean up scanned …

Refresh