Python Forum
Split a long string into other strings with no delimiters/characters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split a long string into other strings with no delimiters/characters
#2
Well, you want everything up to an including the first ')', then everything from there to the first pound sign. The the first pound sign to two digits after the decimal, then one character, then split the rest at the space. You can find where those characters are with the index method of the string, and then just use slicing to split it apart.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Split a long string into other strings with no delimiters/characters - by ichabod801 - Nov-15-2019, 02:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  doing string split with 2 or more split characters Skaperen 22 2,554 Aug-13-2023, 01:57 AM
Last Post: Skaperen
  Trying to understand strings and lists of strings Konstantin23 2 767 Aug-06-2023, 11:42 AM
Last Post: deanhystad
Sad How to split a String from Text Input into 40 char chunks? lastyle 7 1,144 Aug-01-2023, 09:36 AM
Last Post: Pedroski55
  How do I check if the first X characters of a string are numbers? FirstBornAlbratross 6 1,551 Apr-12-2023, 10:39 AM
Last Post: jefsummers
  [split] Parse Nested JSON String in Python mmm07 4 1,539 Mar-28-2023, 06:07 PM
Last Post: snippsat
  Split string using variable found in a list japo85 2 1,306 Jul-11-2022, 08:52 AM
Last Post: japo85
  Splitting strings in list of strings jesse68 3 1,777 Mar-02-2022, 05:15 PM
Last Post: DeaD_EyE
  Isolate a word from a long string nicocorico 2 1,537 Feb-25-2022, 01:12 PM
Last Post: nicocorico
  Search multiple CSV files for a string or strings cubangt 7 8,057 Feb-23-2022, 12:53 AM
Last Post: Pedroski55
  Split string knob 2 1,877 Nov-19-2021, 10:27 AM
Last Post: ghoul

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020