473,466 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Regex for legal file name chars

WLT
I need to filter out non-legal characters from potential
(user-entered) file names. Certainly this must exist already.

Also...I remember there was a large cache of regex strings online
somewhere but I can't remember the site name. It wasn't regex.com
(though there is a nice fuzzy animal there). Anyone?

PS: It would be very nice to find both Unicode and Ascii versions of
the file name filter.

Mar 27 '06 #1
3 13886
WLT
On Mon, 27 Mar 2006 04:19:36 -0500, WLT <WL*@nospam.com> wrote:
I need to filter out non-legal characters from potential
(user-entered) file names. Certainly this must exist already.

Also...I remember there was a large cache of regex strings online
somewhere but I can't remember the site name. It wasn't regex.com
(though there is a nice fuzzy animal there). Anyone?

PS: It would be very nice to find both Unicode and Ascii versions of
the file name filter.


No reply to this yet. I thought that would be an easy one (you can
tell I'm trying to avoid a jumble of letters if I possibly can).

So...If no one has a regex string to do this, do you know the URL of
the large Regex site? I thought it was regex.com but apparently not.

Mar 30 '06 #2
WLT
On Thu, 30 Mar 2006 04:18:45 -0500, WLT <WL*@nospam.com> wrote:
On Mon, 27 Mar 2006 04:19:36 -0500, WLT <WL*@nospam.com> wrote:
I need to filter out non-legal characters from potential
(user-entered) file names. Certainly this must exist already.

Also...I remember there was a large cache of regex strings online
somewhere but I can't remember the site name. It wasn't regex.com
(though there is a nice fuzzy animal there). Anyone?

PS: It would be very nice to find both Unicode and Ascii versions of
the file name filter.


No reply to this yet. I thought that would be an easy one (you can
tell I'm trying to avoid a jumble of letters if I possibly can).

So...If no one has a regex string to do this, do you know the URL of
the large Regex site? I thought it was regex.com but apparently not.


http://regexlib.com/Search.aspx

Mar 30 '06 #3
WLT
On Thu, 30 Mar 2006 04:18:45 -0500, WLT <WL*@nospam.com> wrote:
So...If no one has a regex string to do this, do you know the URL of
the large Regex site? I thought it was regex.com but apparently not.


Answering my own question... Just found the site again:
http://regexlib.com/Search.aspx

Searching for "File Name" and for "Filename" turned up a few strings.

Mar 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Joe Laughlin | last post by:
I've not used C much before, so I don't know how robust or good this code is. I'd appreciate any feedback or criticisms anyone has! Thanks, Joe #include <stdio.h> #include <string.h>
2
by: Lou Civitella | last post by:
Using VB.Net what is the best way to parse a file name from a web address? For example: http://www.website.com/downloads/video1.avi I want to extract video1.avi from the above address. ...
2
by: Brahm | last post by:
Hi Folks, do you know a file name validator ? I am reading a text file and I am creating new files in runtime. In some cases it is found string with invalid characters so. I have errors. I...
14
by: Jack Russell | last post by:
Is there a simple function to test if a string is a valid file name (i.e does not contain illegal characters etc) other than doing it the long way? Thanks Jack Russell
6
by: teddysnips | last post by:
Access 2k FE - SQL Server 2k BE I've been asked to do some work on this Access application. It was an Access<->Access app., but I've upsized the BE to SQL Server 2k. As far as I can see it...
6
by: Lubomir | last post by:
Hi, Where in .NET are definded constants for maximal file name length and maximal file path? Thanks, Lubomir
0
by: jlparise | last post by:
Hey everyone, I am using the JET Provider to read dBase files in C#. I need to use dBase files due to a legacy system only supporting them. I have been having a weird problem here at work with...
185
by: jacob navia | last post by:
Hi We are rewriting the libc for the 64 bit version of lcc-win and we have added a new field in the FILE structure: char *FileName; fopen() will save the file name and an accessor function will...
1
by: Andrus | last post by:
I need to create legal file name form any string so that PDF and other viewers show nice title. I created method LegalFileName() which uses 2 helper methods. It replaces <>\/:?*"| characters in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.