{"id":19437684,"url":"https://github.com/mganss/regexreplaceprovider","last_synced_at":"2025-09-01T03:39:39.278Z","repository":{"id":66297789,"uuid":"88158516","full_name":"mganss/RegexReplaceProvider","owner":"mganss","description":"IIS Rewrite custom provider to perform regex replacements","archived":false,"fork":false,"pushed_at":"2017-04-13T14:04:51.000Z","size":9,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T07:15:24.557Z","etag":null,"topics":["iis","regex","replace","rewrite"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mganss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-13T11:36:25.000Z","updated_at":"2022-03-03T15:13:52.000Z","dependencies_parsed_at":"2023-02-20T21:46:02.294Z","dependency_job_id":null,"html_url":"https://github.com/mganss/RegexReplaceProvider","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mganss/RegexReplaceProvider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mganss%2FRegexReplaceProvider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mganss%2FRegexReplaceProvider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mganss%2FRegexReplaceProvider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mganss%2FRegexReplaceProvider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mganss","download_url":"https://codeload.github.com/mganss/RegexReplaceProvider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mganss%2FRegexReplaceProvider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273070357,"owners_count":25040263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iis","regex","replace","rewrite"],"created_at":"2024-11-10T15:15:36.599Z","updated_at":"2025-09-01T03:39:39.247Z","avatar_url":"https://github.com/mganss.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RegexReplaceProvider\n\nRegexReplaceProvider is a custom provider for the [IIS URL Rewrite](https://www.iis.net/downloads/microsoft/url-rewrite) module that\nallows you to perform string replacements using regexes.\n\n## Installation\n\nGrab a zip from a [Release](https://github.com/mganss/RegexReplaceProvider/releases) and unpack it into any folder. \nThen launch a command prompt as Administrator, cd into the folder and enter:\n\n```\npowershell .\\gacutil.ps1 -i RegexReplaceProvider.dll\n```\n\nTo add the provider to your site through IIS manager do the following:\n\n- Select your site\n- Double-click URL Rewrite\n- Click \"View Providers...\" on the Actions menu at the right side\n- Click \"Add Provider...\" on the Actions menu\n- Choose a name for the provider, e.g. \"SpaceToHyphen\" (you'll have to add a provider for each regex and replacement you want to use)\n- Choose RegexReplaceProvider from the dropdown\n\nTo configure the provider:\n\n- Click \"Add Provider Setting...\" on the Actions menu\n- Choose \"Regex Pattern\" and enter the pattern in the \"Value\" textbox, e.g. \"(%20)+\" to match all spaces\n- Add another provider setting to set the replacement string, e.g. \"-\" to replace any number of spaces with a single hyphen\n\nThe syntax of [.NET Framework regular expressions](https://docs.microsoft.com/en-us/dotnet/articles/standard/base-types/regular-expression-language-quick-reference) is used. The replacement string can contain [substitutions](https://docs.microsoft.com/en-us/dotnet/articles/standard/base-types/regular-expression-language-quick-reference#substitutions), e.g. \"$1\" refers to the first group in the match.\n\nYou can then use the provider in the redirect URL of a rule action like this:\n\n```\nexample/{SpaceToHyphen:{R:1}}\n```\n\n`SpaceToHyphen` in this example is the name of the provider you have assigned when adding the provider above.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmganss%2Fregexreplaceprovider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmganss%2Fregexreplaceprovider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmganss%2Fregexreplaceprovider/lists"}