Learn Before
Code
RegEx \s Code Example
import re txt = "Python" #Return a match at every white-space character in txt: x = re.findall("\s", txt) print(x) if x: print("Match!") else: print("No match") #Since txt has no white-space characters, it will print "No match"
0
1
Updated 2021-08-24
Tags
Python Programming Language
Data Science