---
title: "parse(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/url/parsestrategy/parse(_:)"
---

# parse(_:)

Parses a URL string in accordance with this strategy and returns the parsed value.

## Declaration

```swift
func parse(_ value: String) throws -> URL
```

## Parameters

- `value`: The string to parse.

## Return Value

Return Value The parsed integer value.

## Discussion

Discussion Use this method to repeatedly parse integer strings with the same URL.ParseStrategy. To parse a single integer string, use the URL initializer init(_:strategy:). This method throws an error if the parse strategy can’t parse the provided string.
