Re: Reg Exp
- From: bajackso@xxxxxxxxx
- Date: 7 Jun 2005 19:05:22 -0700
Sorry, I was at work and we were fixing to leave so I was rushed to
type that up.
Here is an example of the input:
path:\string1\string2\...\stringn:<a letter><some more paramaters that
may contain a :>
Now, the only string I want to get from that input is stringn. I can
gurantee that there will only ever be once occurance of something that
looks like \[a-zA-Z]: THe problem is I cannot get any of the
expressions I write for the splite string function to work. The one I
currantly have(its about the 8th iteration of it) looks like this:
\\\\\\w+\\: Which, as far as I can tell, means this:
the first two \\ are for a literal followed by the next two for a
literal \(this should find a backslash). Then look for all at least 1
character but it doesn't matter how many there are with \w+, then look
for a literal : using \:. Hope that makes more sense.
I don't understand why when I do this its not returning stringn, but it
returns stringn-1 and the letter after the colon. Thanks
.
- Follow-Ups:
- Re: Reg Exp
- From: shakah
- Re: Reg Exp
- References:
- Reg Exp
- From: bajackso
- Re: Reg Exp
- From: shakah
- Reg Exp
- Prev by Date: Re: Java reflection with primitive types
- Next by Date: Re: Java reflection with primitive types
- Previous by thread: Re: Reg Exp
- Next by thread: Re: Reg Exp
- Index(es):
Relevant Pages
|