Skip to content

Commit 483ea37

Browse files
committed
docs: add example for case-insensitive regex
1 parent 5ca9432 commit 483ea37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/examples/advanced/regularExpressions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import {
2323
*
2424
* The extracted data is finally used to dynamically define the location of the attachment to be stored using:
2525
* `.../Reports/{{message.subject.match.school}}/All Reports/{{message.subject.match.reportType}}/{{message.subject.match.reportSubType}}/{{message.subject.match.date}}-{{attachment.name}}`
26+
*
27+
* Flags like searching for the case-insensitive string are also supported by prefixing the regex with `(?<flags>)` like `(?i)...`.
2628
*/
2729
export const info: ExampleInfo = {
2830
name: "regularExpressions",

0 commit comments

Comments
 (0)