Python Forum
splitting a string with 2 different delimiters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
splitting a string with 2 different delimiters
#3
Try this regex "[-.]+". The + after treats consecutive delimiter chars as one. Remove plus if you do not want this.
Reply


Messages In This Thread
RE: splitting a string with 2 different delimiters - by LeanbridgeTech - Dec-16-2019, 06:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  splitting file into multiple files by searching for string AlphaInc 2 908 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Delimiters - How to skip some html tags from being translate Melcu54 0 1,663 May-26-2021, 06:21 AM
Last Post: Melcu54
  Parse String between 2 Delimiters and add as single list items lastyle 5 3,403 Apr-11-2021, 11:03 PM
Last Post: lastyle
  Split string between two different delimiters, with exceptions DreamingInsanity 2 2,049 Aug-24-2020, 08:23 AM
Last Post: DreamingInsanity
  Split string with multiple delimiters and keep the string in "groups" DreamingInsanity 4 6,543 May-12-2020, 09:31 AM
Last Post: DeaD_EyE
  Splitting a string twice bazcurtis 2 5,560 Mar-09-2020, 02:54 PM
Last Post: perfringo
  Problem with delimiters johnprada 5 2,707 Jan-29-2020, 10:17 AM
Last Post: DeaD_EyE
  Problem with delimiters johnprada 1 1,992 Jan-28-2020, 04:27 PM
Last Post: buran
  Split a long string into other strings with no delimiters/characters krewlaz 4 2,802 Nov-15-2019, 02:48 PM
Last Post: ichabod801
  Splitting String into 2d list cclark135 2 2,807 Aug-26-2019, 01:46 PM
Last Post: ThomasL

Forum Jump:

User Panel Messages

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