Karim shoair commited on
Commit
5b23915
·
1 Parent(s): 181cf84

doc(README): be more specific about what the regex match

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -545,7 +545,7 @@ Inspired by BeautifulSoup's `find_all` function you can find elements by using `
545
  * Any string passed is considered a tag name
546
  * Any iterable passed like List/Tuple/Set is considered an iterable of tag names.
547
  * Any dictionary is considered a mapping of HTML element(s) attribute names and attribute values.
548
- * Any regex patterns passed are used as filters
549
  * Any functions passed are used as filters
550
  * Any keyword argument passed is considered as an HTML element attribute with its value.
551
 
@@ -554,7 +554,7 @@ So the way it works is after collecting all passed arguments and keywords, each
554
 
555
  1. All elements with the passed tag name(s).
556
  2. All elements that match all passed attribute(s).
557
- 3. All elements that match all passed regex patterns.
558
  4. All elements that fulfill all passed function(s).
559
 
560
  Note: The filtering process always starts from the first filter it finds in the filtering order above so if no tag name(s) are passed but attributes are passed, the process starts from that layer and so on. **But the order in which you pass the arguments doesn't matter.**
 
545
  * Any string passed is considered a tag name
546
  * Any iterable passed like List/Tuple/Set is considered an iterable of tag names.
547
  * Any dictionary is considered a mapping of HTML element(s) attribute names and attribute values.
548
+ * Any regex patterns passed are used as filters to elements by their text content
549
  * Any functions passed are used as filters
550
  * Any keyword argument passed is considered as an HTML element attribute with its value.
551
 
 
554
 
555
  1. All elements with the passed tag name(s).
556
  2. All elements that match all passed attribute(s).
557
+ 3. All elements that its text content match all passed regex patterns.
558
  4. All elements that fulfill all passed function(s).
559
 
560
  Note: The filtering process always starts from the first filter it finds in the filtering order above so if no tag name(s) are passed but attributes are passed, the process starts from that layer and so on. **But the order in which you pass the arguments doesn't matter.**