Karim shoair commited on
Commit ·
c40149b
1
Parent(s): 2a3d76d
fix(parser): Improve selectors `re` function
Browse files- scrapling/parser.py +1 -1
scrapling/parser.py
CHANGED
|
@@ -1259,7 +1259,7 @@ class Selectors(List[Selector]):
|
|
| 1259 |
:param clean_match: if enabled, this will ignore all whitespaces and consecutive spaces while matching
|
| 1260 |
:param case_sensitive: if disabled, the function will set the regex to ignore the letters case while compiling it
|
| 1261 |
"""
|
| 1262 |
-
results = [n.
|
| 1263 |
return TextHandlers(flatten(results))
|
| 1264 |
|
| 1265 |
def re_first(
|
|
|
|
| 1259 |
:param clean_match: if enabled, this will ignore all whitespaces and consecutive spaces while matching
|
| 1260 |
:param case_sensitive: if disabled, the function will set the regex to ignore the letters case while compiling it
|
| 1261 |
"""
|
| 1262 |
+
results = [n.re(regex, replace_entities, clean_match, case_sensitive) for n in self]
|
| 1263 |
return TextHandlers(flatten(results))
|
| 1264 |
|
| 1265 |
def re_first(
|