Re: removeing leading zeros in a text string (not a numeric field)
From: Marina (someone_at_nospam.com)
Date: 05/04/04
- Next message: Armin Zingler: "Re: removeing leading zeros in a text string (not a numeric field)"
- Previous message: bafidi: "how to change the papersize"
- In reply to: Brian Henry: "removeing leading zeros in a text string (not a numeric field)"
- Next in thread: Armin Zingler: "Re: removeing leading zeros in a text string (not a numeric field)"
- Messages sorted by: [ date ] [ thread ]
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!
>
>
- Next message: Armin Zingler: "Re: removeing leading zeros in a text string (not a numeric field)"
- Previous message: bafidi: "how to change the papersize"
- In reply to: Brian Henry: "removeing leading zeros in a text string (not a numeric field)"
- Next in thread: Armin Zingler: "Re: removeing leading zeros in a text string (not a numeric field)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|