Python Forum
including the white space parts in str.split()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
including the white space parts in str.split()
#7
it is a sequence of characters given in a command argument meant to act similar to the cut command, that parse each line for output. right now a _ is meant to match a run of white space while \_ or in quotes just matches an underscore (in each line of input). i should probably make a version of this that somehow uses regular expressions, though i would have to ask others to test it.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: including the white space parts in str.split() - by Skaperen - Jun-20-2019, 06:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  identify not white pixels in bmp flash77 17 2,431 Nov-10-2023, 09:21 PM
Last Post: flash77
  Function to count words in a list up to and including Sam Oldman45 15 6,556 Sep-08-2023, 01:10 PM
Last Post: Pedroski55
  Including data files in a package ChrisOfBristol 4 2,538 Oct-27-2021, 04:14 PM
Last Post: ChrisOfBristol
  Not including a constructor __init__ in the class definition... bytecrunch 3 11,816 Sep-02-2021, 04:40 AM
Last Post: deanhystad
  how to create pythonic codes including for loop and if statement? aupres 1 1,922 Jan-02-2021, 06:10 AM
Last Post: Gribouillis
  from global space to local space Skaperen 4 2,312 Sep-08-2020, 04:59 PM
Last Post: Skaperen
  Including modules in Python using sys.path.append JoeDainton123 1 2,898 Aug-24-2020, 04:51 AM
Last Post: millpond
  Including a Variable In the HTML Tags When Sending An Email JoeDainton123 0 1,877 Aug-08-2020, 03:11 AM
Last Post: JoeDainton123
  Remove from end of string up to and including some character lbtdne 2 2,334 May-17-2020, 09:24 AM
Last Post: menator01
  "Up to but not including" (My personal guide on slicing & indexing) Drone4four 5 2,912 Nov-20-2019, 09:38 PM
Last Post: newbieAuggie2019

Forum Jump:

User Panel Messages

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