Re: Reg Exp



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

.



Relevant Pages

  • Re: VLOOKUP Closest Match Not Close Enough
    ... Are any of you aware of a function that does a character by character ... match of a string to an array no matter what the length of the string? ...
    (microsoft.public.excel.programming)
  • Re: Function instr
    ... No matter what the next character is. ... InStrreturns a Number value, not a string value, so StrTemp ... What do you mean by this " No matter what the next character is"? ...
    (microsoft.public.access.forms)
  • RE: basic_string causes crash in _vsnprintf???
    ... I was able to get our code running to some extent by fixing the strings to ... > tries to get the tstring variable test from the variable arguments list ... > within the output function in the CRT internals it instead gets the value ... > 0xcdcdcdcd instead of the pointer to the string. ...
    (microsoft.public.vc.stl)
  • Re: Unicode string literals (was:regex & utf8)
    ... I realise that often the distinction does not matter but in the case ... of the regex engine and \w it does make a difference because \w ... string in Perl source where the string contains no codepoints above U ... The neatest and simplest way is probably to just write the character you ...
    (comp.lang.perl.moderated)
  • Re: Scope of Procedures Follow-up
    ... Actually I like the 1 based string because then things like the ... position of a character make sense when you're trying to use unsigned ... But I guess it's all a matter of style when you get down to the bottom ...
    (alt.comp.lang.borland-delphi)