Reputation: 1256
I have a filter that only shows me data with /documents/ in the URL. I need to modify the filter so i can get /documents/ and /getattachment/.
For the Filter Pattern could i use: "/documents/|/getattachment/", assuming the pipe is an OR?
Upvotes: 1
Views: 38
Reputation: 627468
When you have repeating patterns, you may consider shortening the final pattern.
I'd recommend using a grouping construct with alternation:
/(documents|getattachment)/
Now, the pattern will mean:
/
- a slash(documents|getattachment)
- either one word or the other/
- a slashUpvotes: 1