Results 1 to 4 of 4
Thread: Regular expression for file path
- 01-25-2008, 05:07 PM #1
Senior Member
- Join Date
- Nov 2007
- Posts
- 115
- Rep Power
- 0
- 01-25-2008, 06:12 PM #2
Slash is represented by \\ instead of single slash,
c:\\dir\\filename.exe
Is this you are talking about ?dont worry newbie, we got you covered.
- 01-25-2008, 06:18 PM #3
This sounds like validation to me... try this:I need the file path to be in the following form
Does this work?Java Code:([a-zA-Z]:(\\w+)*\\[a-zA-Z0_9]+)?.exe
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 01-25-2008, 08:24 PM #4
Similar Threads
-
regular expression for unicode
By tharhan in forum Advanced JavaReplies: 0Last Post: 04-01-2008, 10:53 PM -
Regular expression with Unions
By Java Tip in forum Java TipReplies: 0Last Post: 01-09-2008, 12:03 PM -
Regular expression with Intersections
By Java Tip in forum Java TipReplies: 0Last Post: 01-09-2008, 12:03 PM -
I can't find the right regular expression
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:36 AM -
to find the workspace path at runtime to write the file
By Gnanam in forum Advanced JavaReplies: 5Last Post: 07-31-2007, 04:22 PM


LinkBack URL
About LinkBacks

Bookmarks