diff --git a/Docs/PathConfiguration.md b/Docs/PathConfiguration.md index 7046fad..0004335 100644 --- a/Docs/PathConfiguration.md +++ b/Docs/PathConfiguration.md @@ -137,3 +137,20 @@ if let enableFeatureX = pathConfiguration.settings["enable-feature-x"] as? Bool } ``` +### Swift Regex + +The Turbo IOS framework uses `NSRegularExpression` swift class to evaluate regular expressions. Something to note is you need to escape back slashes `\` because it is a special charectars in Swift to do this add a second backslash `\\d` + +```json +[ + { + "patterns": [ + "/numbers/\\d+$" + ], + "properties": { + "view-controller": "numbersDetail", + "presentation": "modal" + } + }, +] +```