(May-18-2022, 06:17 PM)paul18fr Wrote: Provides the same result, isn't it ? but if you prefere re.split ...
on what basis should i make the choice between re.split() vs. re.search()?
reading the library reference it seems like if i use re.search(), i need to express just a pattern for what follows the number, which could be just about anything. in past help with module re the regex with re.split() was an expression of the whole thing, making it all hard to understand what was doing what. so if i needed something different i modified what i had or gave up. i don't have a clue how to start a regex from scratch to do these kinds of things, unless i am looking for specific things.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.