hrsakai commented on pull request #125:
URL:
https://github.com/apache/pulsar-client-node/pull/125#issuecomment-701886301
@savearray2
Thank you for your contribution.
Could you change the interface like other pulsar client libraries?
```
const consumer = await client.subscribe({
topicsPattern: 'persistent://public/default/produce-abc[a-z]ef',
});
```
golang
http://pulsar.apache.org/docs/en/client-libraries-go/#receive-example
```
topicsPattern := fmt.Sprintf("persistent://%s/foo.*", namespace)
opts := ConsumerOptions{
TopicsPattern: topicsPattern,
SubscriptionName: "regex-sub",
}
```
java
http://pulsar.apache.org/docs/en/client-libraries-java/#multi-topic-subscriptions
```
Pattern allTopicsInNamespace =
Pattern.compile("persistent://public/default/.*");
Consumer allTopicsConsumer = consumerBuilder
.topicsPattern(allTopicsInNamespace)
.subscribe();
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]