About 7,570,000 results
Open links in new tab
  1. regex - Python extract pattern matches - Stack Overflow

    Mar 11, 2013 · Python extract pattern matches Asked 12 years, 8 months ago Modified 2 years, 1 month ago Viewed 476k times

  2. python - Matching multiple regex patterns with the alternation …

    Jan 6, 2013 · Matching multiple regex patterns with the alternation operator? Asked 12 years, 10 months ago Modified 11 years, 1 month ago Viewed 131k times

  3. Python glob multiple filetypes - Stack Overflow

    Dec 31, 2010 · Is there a better way to use glob.glob in python to get a list of multiple file types such as .txt, .mdown, and .markdown? Right now I have something like this: projectFiles1 = …

  4. Split string with multiple delimiters in Python - Stack Overflow

    Split string with multiple delimiters in Python [duplicate] Asked 14 years, 9 months ago Modified 1 year, 10 months ago Viewed 1.6m times

  5. python - glob exclude pattern - Stack Overflow

    Dec 17, 2013 · 63 You can't exclude patterns with the glob function, globs only allow for inclusion patterns. Globbing syntax is very limited (even a [!..] character class must match a character, …

  6. python - How to glob two patterns with pathlib? - Stack Overflow

    Jan 10, 2018 · How to glob two patterns with pathlib? Asked 7 years, 10 months ago Modified 2 years, 10 months ago Viewed 30k times

  7. python - Check if string matches pattern - Stack Overflow

    How do I check if a string matches the following pattern? Uppercase letter, number(s), uppercase letter, number(s)... Example: These would match: A1B2 B10L1 C1N200J1 These wouldn't ('^' …

  8. How can I add textures to my bars and wedges? - Stack Overflow

    I'm drawing several bar and pie charts using matplotlib.pyplot.bar() and matplotlib.pyplot.pie(). In both functions, I can change the colors of the bars and wedges. However, I need to print these

  9. What does 'r' mean before a Regex pattern? - Stack Overflow

    The solution is to use Python’s raw string notation for regular expression patterns; backslashes are not handled in any special way in a string literal prefixed with 'r'. So r"\n" is a two-character …

  10. python - Capture makes remaining patterns unreachable - Stack …

    May 13, 2021 · SyntaxError: name capture 'OKAY' makes remaining patterns unreachable Key to solving the problem We need to replace the name capture pattern with a non-capturing pattern …