Re: removeing leading zeros in a text string (not a numeric field)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marina (someone_at_nospam.com)
Date: 05/04/04


Date: Tue, 4 May 2004 13:43:34 -0400

Check out the TrimStart method of the string class. You pass it a character
array of characters to remove - in this case, the array will have one
character, the "0".

"Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
news:eX5Cx6fMEHA.3664@TK2MSFTNGP10.phx.gbl...
> Say I have a text string like
>
> "0002323235-3434-3545" and I want to remove the leading zeros, would a
> regular expression work here? sorry I haven't worked with regex's that
much
> and still need to get caught up on them :) if so how would you go about
> doing that? thanks!
>
>



Relevant Pages

  • Re: Need help with textboxes
    ... character into the input box. ... one of assigning the reference to a variable: ... All forms and their children are stored in an array ... No. Bracket property accessors allow their argument to be any string value. ...
    (comp.lang.javascript)
  • Help in Spanish translation of the description of UDFs
    ... functions of minimum / maximum values among elements of an array column. ... GETALLWORDS- Inserts the words from a string into a global dimensioned ... WORDTRAN- Searches a character string for occurrences of a first word, ... ARRAYSUM- Returns the sum of all or a specified range of numeric (and/or ...
    (microsoft.public.fox.helpwanted)
  • Re: Pointer
    ... require in input a pointer char: ... unsafe public static extern int OpenFile; ... What is it pointing to exactly, is it pointing to a "Unicode character" array or is it pointing to a "Single byte character" array or is it pointing to something else? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Pointer
    ... require in input a pointer char: ... unsafe public static extern int OpenFile; ... What is it pointing to exactly, is it pointing to a "Unicode character" array or is it ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: problem with unhandled exception (acces violation) and undefined array/pointer
    ... If you pass a real array to a ... character dummy the extra arguments won't be there. ... occasional fortran user with limited knowledge, ... with compile and link options, ...
    (comp.lang.fortran)