Talk:Extract file extension: Difference between revisions

added a new talk section.
m (added an observation on what a file extension IS.)
(added a new talk section.)
Line 8:
Yes, you are right. My C# code needs to be updated. I will try to do that, when I find time.
 
===legal file extension===
 
If the &nbsp; ''file extension'' &nbsp; appears &nbsp; '''after''' &nbsp; the last period (using the first example), then the file extension should be &nbsp; <big>'''jpg'''</big>, &nbsp; and not &nbsp; <big>'''.jpg'''</big> &nbsp; (just a nitpick). &nbsp; Also note that &nbsp; <big>'''.jpg'''</big> &nbsp; contains a non-alphanumeric character, namely the period. &nbsp; In various documents that I read, the file extension is to the &nbsp; ''right'' &nbsp; of the last period (with other caveats, of course), and does not include the period. &nbsp; But other sites do include the period, so ... -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:26, 4 May 2015 (UTC)
 
Also note that the legality of what is a legal file extension depends on the operating system. &nbsp; Windows/95 for instance, greatelygreatly expanded what is legal (including the use of additional characters, including a blank, as well as lowercase letters). &nbsp; And I can't vouch for the various flavors of *NIX. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:26, 4 May 2015 (UTC)
 
Also, I would use the word &nbsp; '''digits''' &nbsp; (or better yet, &nbsp; '''decimal digits''') &nbsp; instead of &nbsp; '''numbers''' &nbsp; when defining a legal file extension (for this Rosetta Code task). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:42, 4 May 2015 (UTC)
 
It wouldn't hurt to define what a &nbsp; '''letter''' &nbsp; is; &nbsp; I assume you meant lower and uppercase versions of the Latin (Roman) alphabet. &nbsp; If so, specifically mention them. &nbsp; I don't like assuming what you meant. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:42, 4 May 2015 (UTC)
 
'''<big><big><math>\pi</math></big></big>''' &nbsp; is a number, &nbsp; so is &nbsp;'''+1.5''' &nbsp; and &nbsp; '''-6'''. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:42, 4 May 2015 (UTC)