351 references to Regex
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (351)
Classification\SemanticClassifierTests_Regex.cs (345)
37
Regex
.Anchor("$"),
38
Regex
.Grouping("("),
39
Regex
.OtherEscape("\\"),
40
Regex
.OtherEscape("a"),
41
Regex
.OtherEscape("\\"),
42
Regex
.OtherEscape("t"),
43
Regex
.OtherEscape("\\"),
44
Regex
.OtherEscape("u"),
45
Regex
.OtherEscape("0020"),
46
Regex
.Grouping(")"),
47
Regex
.Alternation("|"),
48
Regex
.CharacterClass("["),
49
Regex
.CharacterClass("^"),
50
Regex
.CharacterClass("\\"),
51
Regex
.CharacterClass("p"),
52
Regex
.CharacterClass("{"),
53
Regex
.CharacterClass("Lu"),
54
Regex
.CharacterClass("}"),
55
Regex
.Text("-a"),
56
Regex
.CharacterClass("\\"),
57
Regex
.CharacterClass("w"),
58
Regex
.CharacterClass("\\"),
59
Regex
.CharacterClass("s"),
60
Regex
.Text("a"),
61
Regex
.CharacterClass("-"),
62
Regex
.Text("z"),
63
Regex
.CharacterClass("-"),
64
Regex
.CharacterClass("["),
65
Regex
.Text("m"),
66
Regex
.CharacterClass("-"),
67
Regex
.Text("p"),
68
Regex
.CharacterClass("]"),
69
Regex
.CharacterClass("]"),
70
Regex
.Quantifier("+"),
71
Regex
.Quantifier("?"),
72
Regex
.Comment("(?#comment)"),
73
Regex
.Alternation("|"),
74
Regex
.Grouping("("),
75
Regex
.Anchor("\\"),
76
Regex
.Anchor("b"),
77
Regex
.Anchor("\\"),
78
Regex
.Anchor("G"),
79
Regex
.Anchor("\\"),
80
Regex
.Anchor("z"),
81
Regex
.Grouping(")"),
82
Regex
.Alternation("|"),
83
Regex
.Grouping("("),
84
Regex
.Grouping("?"),
85
Regex
.Grouping("<"),
86
Regex
.Grouping("name"),
87
Regex
.Grouping(">"),
88
Regex
.Text("sub"),
89
Regex
.Grouping(")"),
90
Regex
.Quantifier("{"),
91
Regex
.Quantifier("0"),
92
Regex
.Quantifier(","),
93
Regex
.Quantifier("5"),
94
Regex
.Quantifier("}"),
95
Regex
.Quantifier("?"),
96
Regex
.Anchor("^"));
120
Regex
.Anchor("$"),
121
Regex
.Grouping("("),
122
Regex
.OtherEscape("\\"),
123
Regex
.OtherEscape("a"),
124
Regex
.OtherEscape("\\"),
125
Regex
.OtherEscape("t"),
126
Regex
.OtherEscape("\\"),
127
Regex
.OtherEscape("u"),
128
Regex
.OtherEscape("0020"),
129
Regex
.Grouping(")"),
130
Regex
.Alternation("|"),
131
Regex
.CharacterClass("["),
132
Regex
.CharacterClass("^"),
133
Regex
.CharacterClass("\\"),
134
Regex
.CharacterClass("p"),
135
Regex
.CharacterClass("{"),
136
Regex
.CharacterClass("Lu"),
137
Regex
.CharacterClass("}"),
138
Regex
.Text("-a"),
139
Regex
.CharacterClass("\\"),
140
Regex
.CharacterClass("w"),
141
Regex
.CharacterClass("\\"),
142
Regex
.CharacterClass("s"),
143
Regex
.Text("a"),
144
Regex
.CharacterClass("-"),
145
Regex
.Text("z"),
146
Regex
.CharacterClass("-"),
147
Regex
.CharacterClass("["),
148
Regex
.Text("m"),
149
Regex
.CharacterClass("-"),
150
Regex
.Text("p"),
151
Regex
.CharacterClass("]"),
152
Regex
.CharacterClass("]"),
153
Regex
.Quantifier("+"),
154
Regex
.Quantifier("?"),
155
Regex
.Comment("(?#comment)"),
156
Regex
.Alternation("|"),
157
Regex
.Grouping("("),
158
Regex
.Anchor("\\"),
159
Regex
.Anchor("b"),
160
Regex
.Anchor("\\"),
161
Regex
.Anchor("G"),
162
Regex
.Anchor("\\"),
163
Regex
.Anchor("z"),
164
Regex
.Grouping(")"),
165
Regex
.Alternation("|"),
166
Regex
.Grouping("("),
167
Regex
.Grouping("?"),
168
Regex
.Grouping("<"),
169
Regex
.Grouping("name"),
170
Regex
.Grouping(">"),
171
Regex
.Text("sub"),
172
Regex
.Grouping(")"),
173
Regex
.Quantifier("{"),
174
Regex
.Quantifier("0"),
175
Regex
.Quantifier(","),
176
Regex
.Quantifier("5"),
177
Regex
.Quantifier("}"),
178
Regex
.Quantifier("?"),
179
Regex
.Anchor("^"));
201
Regex
.Anchor("$"),
202
Regex
.Grouping("("),
203
Regex
.OtherEscape("\\"),
204
Regex
.OtherEscape("a"),
205
Regex
.OtherEscape("\\"),
206
Regex
.OtherEscape("t"),
207
Regex
.OtherEscape("\\"),
208
Regex
.OtherEscape("u"),
209
Regex
.OtherEscape("0020"),
210
Regex
.SelfEscapedCharacter("\\"),
211
Regex
.SelfEscapedCharacter("\\"),
212
Regex
.Grouping(")"),
213
Regex
.Alternation("|"),
214
Regex
.CharacterClass("["),
215
Regex
.CharacterClass("^"),
216
Regex
.CharacterClass("\\"),
217
Regex
.CharacterClass("p"),
218
Regex
.CharacterClass("{"),
219
Regex
.CharacterClass("Lu"),
220
Regex
.CharacterClass("}"),
221
Regex
.Text("-a"),
222
Regex
.CharacterClass("\\"),
223
Regex
.CharacterClass("w"),
224
Regex
.CharacterClass("\\"),
225
Regex
.CharacterClass("s"),
226
Regex
.Text("a"),
227
Regex
.CharacterClass("-"),
228
Regex
.Text("z"),
229
Regex
.CharacterClass("-"),
230
Regex
.CharacterClass("["),
231
Regex
.Text("m"),
232
Regex
.CharacterClass("-"),
233
Regex
.Text("p"),
234
Regex
.CharacterClass("]"),
235
Regex
.CharacterClass("]"),
236
Regex
.Quantifier("+"),
237
Regex
.Quantifier("?"),
238
Regex
.Comment("(?#comment)"),
239
Regex
.Alternation("|"),
240
Regex
.Grouping("("),
241
Regex
.Anchor("\\"),
242
Regex
.Anchor("b"),
243
Regex
.Anchor("\\"),
244
Regex
.Anchor("G"),
245
Regex
.Anchor("\\"),
246
Regex
.Anchor("z"),
247
Regex
.Grouping(")"),
248
Regex
.Alternation("|"),
249
Regex
.Grouping("("),
250
Regex
.Grouping("?"),
251
Regex
.Grouping("<"),
252
Regex
.Grouping("name"),
253
Regex
.Grouping(">"),
254
Regex
.Text("sub"),
255
Regex
.Grouping(")"),
256
Regex
.Quantifier("{"),
257
Regex
.Quantifier("0"),
258
Regex
.Quantifier(","),
259
Regex
.Quantifier("5"),
260
Regex
.Quantifier("}"),
261
Regex
.Quantifier("?"),
262
Regex
.Anchor("^"));
284
Regex
.Anchor("$"),
285
Regex
.OtherEscape("\\"),
286
Regex
.OtherEscape("a"),
287
Regex
.Comment("(?#comment)"));
309
Regex
.Anchor("$"),
310
Regex
.OtherEscape(@"\\"),
311
Regex
.OtherEscape("a"),
312
Regex
.Comment("(?#comment)"));
334
Regex
.Anchor("$"),
335
Regex
.OtherEscape("\\"),
336
Regex
.OtherEscape("a"),
337
Regex
.Comment("(?#comment)"));
359
Regex
.Anchor("$"),
360
Regex
.OtherEscape("\\"),
361
Regex
.OtherEscape("a"),
362
Regex
.Comment("(?#comment)"));
384
Regex
.Anchor("$"),
385
Regex
.OtherEscape("\\"),
386
Regex
.OtherEscape("a"),
387
Regex
.Comment("(?#comment)"),
388
Regex
.Text(" # not end of line comment"));
410
Regex
.Anchor("$"),
411
Regex
.OtherEscape("\\"),
412
Regex
.OtherEscape("a"),
413
Regex
.Comment("(?#comment)"),
414
Regex
.Comment("# is end of line comment"));
436
Regex
.Anchor("$"),
437
Regex
.OtherEscape("\\"),
438
Regex
.OtherEscape("a"),
439
Regex
.Comment("(?#comment)"),
440
Regex
.Comment("# is end of line comment"));
463
Regex
.Anchor("$"),
464
Regex
.OtherEscape("\\"),
465
Regex
.OtherEscape("a"),
466
Regex
.Comment("(?#comment)"),
467
Regex
.Comment("# is end of line comment"),
492
Regex
.Anchor("$"),
493
Regex
.OtherEscape("\\"),
494
Regex
.OtherEscape("a"),
495
Regex
.Comment("(?#comment)"),
496
Regex
.Text(" # is not end of line comment"));
519
Regex
.Anchor("$"),
520
Regex
.OtherEscape("\\"),
521
Regex
.OtherEscape("a"),
522
Regex
.Comment("(?#comment)"),
523
Regex
.Text(" # is not end of line comment"));
542
Regex
.Anchor("$"),
543
Regex
.Grouping("("),
544
Regex
.OtherEscape("\\"),
545
Regex
.OtherEscape("a"),
546
Regex
.OtherEscape("\\"),
547
Regex
.OtherEscape("t"),
548
Regex
.OtherEscape("\\"),
549
Regex
.OtherEscape("u"),
550
Regex
.OtherEscape("0020"),
551
Regex
.Grouping(")"));
573
Regex
.Anchor("$"),
574
Regex
.OtherEscape("\\"),
575
Regex
.OtherEscape("a"),
576
Regex
.Comment("(?#comment)"));
598
Regex
.Anchor("$"),
599
Regex
.OtherEscape("\\"),
600
Regex
.OtherEscape("a"),
601
Regex
.Comment("(?#comment)"));
625
Regex
.Anchor("$"),
626
Regex
.OtherEscape("\\"),
627
Regex
.OtherEscape("a"),
628
Regex
.Comment("(?#comment)"));
652
Regex
.Anchor("$"),
653
Regex
.OtherEscape("\\"),
654
Regex
.OtherEscape("a"),
655
Regex
.Comment("(?#comment)"));
678
Regex
.Anchor("^"),
679
Regex
.Text(@" """" "),
680
Regex
.Anchor("$"));
701
Regex
.Anchor("^"),
702
Regex
.Text(@" """" "),
703
Regex
.Anchor("$"));
727
Regex
.Anchor("$"),
728
Regex
.OtherEscape("\\"),
729
Regex
.OtherEscape("a"),
730
Regex
.Comment("(?#comment)"));
748
Regex
.Anchor("$"),
749
Regex
.OtherEscape("\\"),
750
Regex
.OtherEscape("a"),
751
Regex
.Comment("(?#comment)"));
775
Regex
.Anchor("$"),
776
Regex
.OtherEscape("\\"),
777
Regex
.OtherEscape("a"),
778
Regex
.Comment("(?#comment)"));
796
Regex
.Anchor("$"),
797
Regex
.OtherEscape("\\"),
798
Regex
.OtherEscape("a"),
799
Regex
.Comment("(?#comment)"));
824
Regex
.Anchor("$"),
825
Regex
.OtherEscape("\\"),
826
Regex
.OtherEscape("a"),
827
Regex
.Comment("(?#comment)"));
852
Regex
.Anchor("$"),
853
Regex
.OtherEscape("\\"),
854
Regex
.OtherEscape("a"),
855
Regex
.Comment("(?#comment)"));
881
Regex
.Anchor("$"),
882
Regex
.OtherEscape("\\"),
883
Regex
.OtherEscape("a"),
884
Regex
.Comment("(?#comment)"),
885
Regex
.Anchor("$"),
886
Regex
.OtherEscape("\\"),
887
Regex
.OtherEscape("a"),
888
Regex
.Comment("(?#comment)"));
913
Regex
.Anchor("$"),
914
Regex
.OtherEscape("\\"),
915
Regex
.OtherEscape("a"),
916
Regex
.Comment("(?#comment)"));
941
Regex
.Anchor("$"),
942
Regex
.OtherEscape("\\"),
943
Regex
.OtherEscape("a"),
944
Regex
.Comment("(?#comment)"));
971
Regex
.Anchor("$"),
972
Regex
.OtherEscape("\\"),
973
Regex
.OtherEscape("a"),
974
Regex
.Comment("(?#comment)"));
1000
Regex
.Anchor("$"),
1001
Regex
.OtherEscape("\\"),
1002
Regex
.OtherEscape("a"),
1003
Regex
.Comment("(?#comment)"));
1028
Regex
.Anchor("$"),
1029
Regex
.OtherEscape("\\"),
1030
Regex
.OtherEscape("a"),
1031
Regex
.Comment("(?#comment)"),
1032
Regex
.Comment("# is end of line comment"),
1060
Regex
.Anchor("$"),
1061
Regex
.OtherEscape("\\"),
1062
Regex
.OtherEscape("a"),
1063
Regex
.Comment("(?#comment)"));
1094
Regex
.Anchor("$"),
1095
Regex
.OtherEscape("\\"),
1096
Regex
.OtherEscape("a"),
1097
Regex
.Comment("(?#comment)"));
1128
Regex
.Anchor("$"),
1129
Regex
.OtherEscape("\\"),
1130
Regex
.OtherEscape("a"),
1131
Regex
.Comment("(?#comment)"));
1157
Regex
.Anchor("$"),
1158
Regex
.OtherEscape("\\"),
1159
Regex
.OtherEscape("a"),
1160
Regex
.Comment("(?#comment)"));
1186
Regex
.Anchor("$"),
1187
Regex
.OtherEscape("\\"),
1188
Regex
.OtherEscape("a"),
1189
Regex
.Comment("(?#comment)"));
1215
Regex
.Anchor("$"),
1216
Regex
.OtherEscape("\\"),
1217
Regex
.OtherEscape("a"),
1218
Regex
.Comment("(?#comment)"));
1266
Regex
.Anchor("$"),
1267
Regex
.OtherEscape("\\"),
1268
Regex
.OtherEscape("a"),
1269
Regex
.Comment("(?#comment)"));
1287
Regex
.Anchor("$"),
1288
Regex
.OtherEscape("\\"),
1289
Regex
.OtherEscape("a"),
1290
Regex
.Comment("(?#comment)"));
Classification\TotalClassifierTests.cs (6)
3099
Regex
.Grouping("("),
3100
Regex
.Text("a"),
3101
Regex
.Grouping(")"),
3200
Regex
.Grouping("("),
3201
Regex
.Text("a"),
3202
Regex
.Grouping(")"),