Skip to content

Commit

Permalink
doc(README): be more specific about what the regex match
Browse files Browse the repository at this point in the history
  • Loading branch information
D4Vinci committed Jan 30, 2025
1 parent 3f23f18 commit 9ea245e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ Inspired by BeautifulSoup's `find_all` function you can find elements by using `
* Any string passed is considered a tag name
* Any iterable passed like List/Tuple/Set is considered an iterable of tag names.
* Any dictionary is considered a mapping of HTML element(s) attribute names and attribute values.
* Any regex patterns passed are used as filters
* Any regex patterns passed are used as filters to elements by their text content
* Any functions passed are used as filters
* Any keyword argument passed is considered as an HTML element attribute with its value.
Expand All @@ -554,7 +554,7 @@ So the way it works is after collecting all passed arguments and keywords, each
1. All elements with the passed tag name(s).
2. All elements that match all passed attribute(s).
3. All elements that match all passed regex patterns.
3. All elements that its text content match all passed regex patterns.
4. All elements that fulfill all passed function(s).
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.**
Expand Down

0 comments on commit 9ea245e

Please # to comment.