Selerix Developer Tools
StripNonNumerics(String,String) Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > Utils Class > StripNonNumerics Method : StripNonNumerics(String,String) Method
String that may contain non-numeric characters
Allow these characters to be included even if they're non-numeric
Utility function that removes all non-numeric characters from a string and returns just the numbers. This is used when storing SSN's, ZIP Codes, etc.
Syntax
'Declaration
 
Public Overloads Shared Function StripNonNumerics( _
   ByVal strIN As String, _
   ByVal strExcept As String _
) As String
'Usage
 
Dim strIN As String
Dim strExcept As String
Dim value As String
 
value = Utils.StripNonNumerics(strIN, strExcept)
public static string StripNonNumerics( 
   string strIN,
   string strExcept
)
public function StripNonNumerics( 
    strIN: String;
    strExcept: String
): String; static; 
public static function StripNonNumerics( 
   strIN : String,
   strExcept : String
) : String;
public: static string* StripNonNumerics( 
   string* strIN,
   string* strExcept
) 
public:
static String^ StripNonNumerics( 
   String^ strIN,
   String^ strExcept
) 

Parameters

strIN
String that may contain non-numeric characters
strExcept
Allow these characters to be included even if they're non-numeric

Return Value

String containing only the numeric characters from the input string
See Also

Reference

Utils Class
Utils Members
Overload List