Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1062195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:35:12+00:00 2026-05-16T18:35:12+00:00

I am writing an application in C# that will need to find placeholders in

  • 0

I am writing an application in C# that will need to find placeholders in URLs and/or filenames, and substitute in a value, much like this: C:\files\file{number} => C:\files\file1 Unfortunately for that example, curly braces are allowed in file names and URLs.

Can anyone please suggest some characters that I can use to denote placeholders in files and URLs? Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:35:13+00:00Added an answer on May 16, 2026 at 6:35 pm

    Windows rather helpfully tells you what characters aren’t allowed in a filename, when you try to use on of them:

    A filename cannot contain any of the following characters:
    \ / : * ? ” < > |

    See this support article for more information, including the list of allowed characters.

    Characters that are valid for naming
    files, folders, or shortcuts include
    any combination of letters (A-Z) and
    numbers (0-9), plus the following
    special characters:

    ^   Accent circumflex (caret)
    &   Ampersand
    '   Apostrophe (single quotation mark)
    @   At sign
    {   Brace left
    }   Brace right
    [   Bracket opening
    ]   Bracket closing
    ,   Comma
    $   Dollar sign
    =   Equal sign
    !   Exclamation point
    -   Hyphen
    #   Number sign
    (   Parenthesis opening
    )   Parenthesis closing
    %   Percent
    .   Period
    +   Plus
    ~   Tilde
    _   Underscore
    

    As for URLs, see section 2.2 of RFC 1738 for a description of allowed characters:

    Thus, only alphanumerics, the
    special characters “$-_.+!*'(),”, and
    reserved characters used for their reserved purposes may be used unencoded within a URL.

    …also of interest, from the same section:

    Characters can be unsafe for a number
    of reasons. The space character is
    unsafe because significant spaces may
    disappear and insignificant spaces may
    be introduced when URLs are
    transcribed or typeset or subjected to
    the treatment of word-processing
    programs. The characters “<” and “>”
    are unsafe because they are used as
    the delimiters around URLs in free
    text; the quote mark (“””) is used to
    delimit URLs in some systems. The
    character “#” is unsafe and should
    always be encoded because it is used
    in World Wide Web and in other systems
    to delimit a URL from a
    fragment/anchor identifier that might
    follow it. The character “%” is
    unsafe because it is used for
    encodings of other characters. Other
    characters are unsafe because gateways
    and other transport agents are known
    to sometimes modify such characters.
    These characters are “{“, “}”, “|”,
    “\”, “^”, “~”, “[“, “]”, and “`”.

    All unsafe characters must always be encoded within a URL.

    It looks like the double-quote and angle bracket characters ("<>) are good options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company is looking into writing a custom application that will need to perform
I am writing an application that will allow an android phone and java application
I'm writing an application that will create difficult passwords for the user. The user
I'm writing an application that will add users to Active Directory. I'm trying to
I am writing a PHP application that will have the ability to edit settings
I'm writing a console application that will be deployed with an installation of an
I am writing a Silverlight application that will be both reading and writing data
I'm writing a wrapper application that will be used to provide an abstraction layer
I am writing a C# application that will update the fields in a SQL
I am writing a nodejs application that will be sending html e-mail using emailjs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.