SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[python] Why my regexp for hyphenated words doesn't work?
Home
Question
Why my regexp for hyphenated words doesn't work?
You can use this:
r'[a-z]+(?:-[a-z]+)*'
Examples related to
python
•
programming a servo thru a barometer
•
Is there a way to view two blocks of code from the same file simultaneously in Sublime Text?
•
python variable NameError
•
Why my regexp for hyphenated words doesn't work?
•
Comparing a variable with a string python not working when redirecting from bash script
•
is it possible to add colors to python output?
•
Get Public URL for File - Google Cloud Storage - App Engine (Python)
•
Real time face detection OpenCV, Python
•
xlrd.biffh.XLRDError: Excel xlsx file; not supported
•
Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation
Examples related to
regex
•
Why my regexp for hyphenated words doesn't work?
•
grep's at sign caught as whitespace
•
Preg_match backtrack error
•
regex match any single character (one character only)
•
re.sub erroring with "Expected string or bytes-like object"
•
Only numbers. Input number in React
•
Visual Studio Code Search and Replace with Regular Expressions
•
Strip / trim all strings of a dataframe
•
return string with first match Regex
•
How to capture multiple repeated groups?