Re: Regular expression for numeric



On 21 Apr 2006 02:05:49 -0700, "cybernerdsx2" <fongjengkum@xxxxxxxxx>
wrote:

okay, maybe i wasn't clear on this. When I say i want to check for
"v1.2.54" it is not fixed, meaning, my code needs to dynamically picks
up that I want to search for the version number on a application. That
application can changed to v1.3.4 and so on in the future.

So my program will have to pick up the pattern to check for that
version which will always be like this pattern : "vX.XX.AXXX" being X
as numeric and A as alphabet.

Hope this clears up the situation here?

Well, in a way, it does clear up the situation. It's becoming clear
that you have some very basic things to learn before writing a C
program.

Do you have any experience programming in any language? I would
suggest that you get a copy of Kernighan and Ritchie, "The C
Programming Language" and study it carefully. It's perhaps the best
tutorial around, but the writing is not verbose, and you have to pay
attention.

--
Al Balmer
Sun City, AZ
.



Relevant Pages

  • Re: Exchange 2003 Transaction Log Performance
    ... Instead of one thread writing, ... The IO pattern will ... The seek time is the major component of disk access time. ... order to achieve a purely sequential workload, you'd need to be able to ...
    (microsoft.public.exchange.design)
  • Re: Uses of Magic
    ... see a pattern. ... likely--that you think it is a flaw in the character. ... Spending one's talents in a profitable endeavor that does ... honestly claim that doing so is my main reason for writing them. ...
    (rec.arts.sf.composition)
  • writing an interpreter in lisp
    ... I must write an interpreter for a programming language. ... Yet, I'd like to learn LISP, and writing my interpreter in LISP might ...
    (comp.lang.lisp)
  • Re: (patch for Bash) arrayzip, arrayunzip
    ... > programming language". ... > writing shell code. ... considering that it's shell script vs. C. ...
    (comp.unix.shell)
  • Re: Python Patterns
    ... > methods (embodied in the one strategy object) commuted as a whole. ... has a different interface than with the State pattern. ... is essentially identical to the internal state object -- which, ... Don't know why I'm writing all this. ...
    (comp.lang.python)