This repository was archived by the owner on Feb 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
generator/config/expression Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 36
36
returnObject :
37
37
$regexFind :
38
38
input : ' $description'
39
- regex : !regex 'line'
39
+ regex : !bson_regex 'line'
40
40
-
41
41
name : ' i Option'
42
42
link : ' https://www.mongodb.com/docs/manual/reference/operator/aggregation/regexFind/#i-option'
47
47
# Specify i as part of the Regex type
48
48
$regexFind :
49
49
input : ' $description'
50
- regex : !regex ['line', 'i']
50
+ regex : !bson_regex ['line', 'i']
51
51
-
52
52
$addFields :
53
53
returnObject :
62
62
# Mix Regex type with options field
63
63
$regexFind :
64
64
input : ' $description'
65
- regex : !regex 'line'
65
+ regex : !bson_regex 'line'
66
66
options : ' i'
Original file line number Diff line number Diff line change 36
36
returnObject :
37
37
$regexFindAll :
38
38
input : ' $description'
39
- regex : !regex 'line'
39
+ regex : !bson_regex 'line'
40
40
-
41
41
name : ' i Option'
42
42
link : ' https://www.mongodb.com/docs/manual/reference/operator/aggregation/regexFindAll/#i-option'
47
47
# Specify i as part of the regex type
48
48
$regexFindAll :
49
49
input : ' $description'
50
- regex : !regex ['line', 'i']
50
+ regex : !bson_regex ['line', 'i']
51
51
-
52
52
$addFields :
53
53
returnObject :
62
62
# Mix Regex type with options field
63
63
$regexFindAll :
64
64
input : ' $description'
65
- regex : !regex 'line'
65
+ regex : !bson_regex 'line'
66
66
options : ' i'
67
67
-
68
68
name : ' Use $regexFindAll to Parse Email from String'
73
73
email :
74
74
$regexFindAll :
75
75
input : ' $comment'
76
- regex : !regex ['[a-z0-9_.+-]+@[a-z0-9_.+-]+\.[a-z0-9_.+-]+', 'i']
76
+ regex : !bson_regex ['[a-z0-9_.+-]+@[a-z0-9_.+-]+\.[a-z0-9_.+-]+', 'i']
77
77
-
78
78
$set :
79
79
email : ' $email.match'
86
86
names :
87
87
$regexFindAll :
88
88
input : ' $comment'
89
- regex : !regex ['([a-z0-9_.+-]+)@[a-z0-9_.+-]+\.[a-z0-9_.+-]+', 'i']
89
+ regex : !bson_regex ['([a-z0-9_.+-]+)@[a-z0-9_.+-]+\.[a-z0-9_.+-]+', 'i']
90
90
-
91
91
$set :
92
92
names :
Original file line number Diff line number Diff line change 36
36
result :
37
37
$regexMatch :
38
38
input : ' $description'
39
- regex : !regex 'line'
39
+ regex : !bson_regex 'line'
40
40
-
41
41
name : ' i Option'
42
42
link : ' https://www.mongodb.com/docs/manual/reference/operator/aggregation/regexMatch/#i-option'
47
47
# Specify i as part of the Regex type
48
48
$regexMatch :
49
49
input : ' $description'
50
- regex : !regex ['line', 'i']
50
+ regex : !bson_regex ['line', 'i']
51
51
-
52
52
$addFields :
53
53
result :
62
62
# Mix Regex type with options field
63
63
$regexMatch :
64
64
input : ' $description'
65
- regex : !regex 'line'
65
+ regex : !bson_regex 'line'
66
66
options : ' i'
67
67
-
68
68
name : ' Use $regexMatch to Check Email Address'
75
75
if :
76
76
$regexMatch :
77
77
input : ' $comment'
78
- regex :
!regex ['[a-z0-9_.+-][email protected] ', 'i']
78
+ regex :
!bson_regex ['[a-z0-9_.+-][email protected] ', 'i']
79
79
then : ' Employee'
80
80
else : ' External'
Original file line number Diff line number Diff line change 36
36
path : ' $city_state'
37
37
-
38
38
$match :
39
- city_state : !regex '[A-Z]{2}'
39
+ city_state : !bson_regex '[A-Z]{2}'
40
40
-
41
41
$group :
42
42
_id :
You can’t perform that action at this time.
0 commit comments