Skip to content

Commit 8744539

Browse files
committed
adding what is new
1 parent 77b9b58 commit 8744539

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/index.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,23 @@ DeepDiff is rigorously tested against Python 3.6, 3.7, 3.8, 3.9 and Pypy3
3535

3636
NOTE: Python 2 is not supported any more. DeepDiff v3.3.0 was the last version to supprt Python 2.
3737

38+
***********
39+
What is New
40+
***********
41+
42+
Deepdiff 5.3.0 comes with regular expressions in the DeepSearch and grep modules:
43+
44+
45+
.. code:: python
46+
47+
>>> from deepdiff import grep
48+
>>> from pprint import pprint
49+
>>> obj = ["something here", {"long": "somewhere", "someone": 2, 0: 0, "somewhere": "around"}]
50+
>>> ds = obj | grep("some.*", use_regexp=True)
51+
{ 'matched_paths': ["root[1]['someone']", "root[1]['somewhere']"],
52+
'matched_values': ['root[0]', "root[1]['long']"]}
53+
54+
3855
*********
3956
Tutorials
4057
*********

0 commit comments

Comments
 (0)