>>> import re
>>> re.findall('"([^"]*)"', 'SetVariables "a" "b" "c" ')
['a', 'b', 'c']
More Related Contents:
- How do you extract a url from a string using python?
- Split Strings into words with multiple word boundary delimiters
- Filter pandas DataFrame by substring criteria
- Why do backslashes appear twice?
- How to get the value of a variable given its name in a string? [duplicate]
- About the changing id of an immutable string
- Converting a string representation of a list into an actual list object [duplicate]
- How to delete a character from a string using Python
- Remove all special characters, punctuation and spaces from string
- Pandas Extract Number from String
- Python str vs unicode types
- python: SyntaxError: EOL while scanning string literal
- n-grams in python, four, five, six grams?
- Finding a substring within a list in Python [duplicate]
- Best way to parse a URL query string
- Python string literal concatenation
- Convert a string to integer with decimal in Python
- What is a clean way to convert a string percent to a float?
- Determine precision and scale of particular number in Python
- Python: Find a substring in a string and returning the index of the substring
- How to return all list elements of a given length?
- Best way to loop over a python string backwards
- Extracting words from a string, removing punctuation and returning a list with separated words
- Can I sort text by its numeric value in Python?
- How can I extract the folder path from file path in Python?
- Split a string into 2 in Python
- How can I split by 1 or more occurrences of a delimiter in Python?
- What does backward-slash b do in Python?
- Why do I get “TypeError: not all arguments converted during string formatting” trying to check for an even/odd number?
- How to extract all values from a dictionary in Python?