# RegexStreamNamespacePredicate.RegexStreamNamespacePredicate(string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.regexstreamnamespacepredicate/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.regexstreamnamespacepredicate/constructors/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Predicates/RegexStreamNamespacePredicate.cs#L24-L28)

```csharp
public RegexStreamNamespacePredicate(string regex)
```

Creates an instance of [RegexStreamNamespacePredicate](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.regexstreamnamespacepredicate/) with the specified regular expression.

### Parameters

- `regex` (`string`): The stream namespace regular expression.
