Link to home
Start Free TrialLog in
Avatar of rmardis
rmardis

asked on

Remove special character from string

using C# I have a string which is a filename of a file being uploaded. on some systems a period can be used as part of a filename like ".testfile.pdf"  I need to remove the period only if it is the first character in the string.  I have tried replace but all periods are removed and i haven't been able to tuse regex either.
ASKER CERTIFIED SOLUTION
Avatar of lenordiste
lenordiste
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmardis
rmardis

ASKER

This was it, Thank you for your speedy answer.