Python Forum
Split string at specific number
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split string at specific number
#1
Hey there,
at first, excuse my bad English. It's not my mother tongue.

Now to my question:
Through some experiments I got some random strings containing only numbers looking like that:
"02587304986710134775623874160348756018734569238475610876..."
Now i wanna go through the string and split it at each possible alphabetic number.
Because it contains 0, i wanna use the alphabet from 0-25.
This means, that the first numbers i'll get in an array would be the following:
"0, 25, 8, 7, 3, 0, 4, 9, 8, 6, 7, 10, 13, 4, 7, 7, 5, 6, 23, 8, 7, 4, 16, 0, ..."

How could i realize that?

Hope you'll understand what I mean and want to do.
Yours Sincerely,
TimeMen
Reply


Messages In This Thread
Split string at specific number - by TimeMen - Apr-28-2018, 08:47 PM
RE: Split string at specific number - by micseydel - Apr-29-2018, 04:57 AM
RE: Split string at specific number - by TimeMen - Apr-29-2018, 07:13 AM
RE: Split string at specific number - by micseydel - Apr-30-2018, 02:37 AM
RE: Split string at specific number - by buran - Apr-30-2018, 08:42 AM
RE: Split string at specific number - by killerrex - Apr-30-2018, 09:32 AM
RE: Split string at specific number - by wavic - May-01-2018, 07:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  doing string split with 2 or more split characters Skaperen 22 2,680 Aug-13-2023, 01:57 AM
Last Post: Skaperen
Sad How to split a String from Text Input into 40 char chunks? lastyle 7 1,218 Aug-01-2023, 09:36 AM
Last Post: Pedroski55
Question Extracting Version Number from a String britesc 2 1,146 May-31-2023, 10:20 AM
Last Post: britesc
  [split] Parse Nested JSON String in Python mmm07 4 1,604 Mar-28-2023, 06:07 PM
Last Post: snippsat
  Split string using variable found in a list japo85 2 1,336 Jul-11-2022, 08:52 AM
Last Post: japo85
  TypeError: float() argument must be a string or a number, not 'list' Anldra12 2 4,951 Jul-01-2022, 01:23 PM
Last Post: deanhystad
  Split a number to list and list sum must be number sunny9495 5 2,357 Apr-28-2022, 09:32 AM
Last Post: Dexty
  Split string knob 2 1,914 Nov-19-2021, 10:27 AM
Last Post: ghoul
Question [SOLVED] Delete specific characters from string lines EnfantNicolas 4 2,272 Oct-21-2021, 11:28 AM
Last Post: EnfantNicolas
  Remove Specific Columns when the number of columns is greater than a specific value CuriousOne 0 1,341 Sep-09-2021, 09:17 PM
Last Post: CuriousOne

Forum Jump:

User Panel Messages

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