[ https://issues.apache.org/jira/browse/DISPATCH-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257131#comment-16257131 ]
ASF GitHub Bot commented on DISPATCH-875: ----------------------------------------- Github user kgiusti commented on a diff in the pull request: https://github.com/apache/qpid-dispatch/pull/218#discussion_r151715642 --- Diff: doc/new-book/routing.adoc --- @@ -213,15 +213,17 @@ address { } ---- -`prefix` | `pattern`:: The address or group of addresses to which the address settings should be applied. You can specify a prefix to match an exact address or segment of an address. Alternatively, you can specify a pattern to match an address using wildcards. +`prefix` | `pattern`:: The address or group of addresses to which the address settings should be applied. You can specify a prefix to match an exact address or beginning segment of an address. Alternatively, you can specify a pattern to match an address using wildcards. + //tag::prefix-matching[] -A _prefix_ matches either an exact address or a segment within an address that is delimited by either a `.` or `/` character. For example, the prefix `my_address` would match the address `my_address` as well as `my_address.1` and `my_address/1`. However, it would not match `my_address1`. +A _prefix_ matches either an exact address or the beginning segment within an address that is delimited by either a `.` or `/` character. For example, the prefix `my_address` would match the address `my_address` as well as `my_address.1` and `my_address/1`. However, it would not match `my_address1`. //end::prefix-matching[] + //tag::pattern-matching[] A _pattern_ matches an address that corresponds to a pattern. A pattern is a sequence of words delimited by either a `.` or `/` character. You can use wildcard characters to represent a word. The `*` character matches exactly one word, and the `#` character matches any sequence of zero or more words. + +The pattern configuration and the address(es) that match the pattern should use the same delimiter character. For example, if you configure the pattern to be `my.+`, then the addresses that match the pattern should also use a `.` as a delimiter (instead of a `/`). --- End diff -- Yes I agree on that change - but there's a typo in that last paragraph: / is not a wildcard, # is. > Document address and link route wildcards > ----------------------------------------- > > Key: DISPATCH-875 > URL: https://issues.apache.org/jira/browse/DISPATCH-875 > Project: Qpid Dispatch > Issue Type: Bug > Components: Documentation > Affects Versions: 1.1.0 > Reporter: Ben Hardesty > Assignee: Ben Hardesty > > Update Dispatch Router doc to describe how to define groups of addresses > using the new "pattern" address attribute. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org