Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# replace all non numeric characters

var input = "+33 06 06-78-75 aze";
var result = new string(input.Where(c => char.IsDigit(c)).ToArray());
//result => "3306067875"
Comment

PREVIOUS NEXT
Code Example
Csharp :: Point to mouse 2D Unity 
Csharp :: c# get username 
Csharp :: how do i convert to base64 c# 
Csharp :: ngrok for asp.net core 
Csharp :: draw sphere gizmo unity 
Csharp :: check version of asp.net core 
Csharp :: Time delay C# unity 
Csharp :: bitmasking in c# 
Csharp :: C# get pc language 
Csharp :: how to remove a component from an object in unity 
Csharp :: how to detect collision in unity 
Csharp :: unity to integer 
Csharp :: degree to radians c# 
Csharp :: unity how to copy something to the clipboard 
Csharp :: unity editor select object in script 
Csharp :: unity run void from another script 
Csharp :: unity textmeshpro 
Csharp :: unity color set alpha 
Csharp :: unity instantiate empty gameobject 
Csharp :: xamarin button text lowercase 
Csharp :: how to get rigidbody speed in unity 
Csharp :: how o remove .meta files visual studio code 
Csharp :: c# main method 
Csharp :: get dropdown selected value unity 
Csharp :: substring c# after character 
Csharp :: how to change rotate with script unity 
Csharp :: c# connection string 
Csharp :: c# windows application get current path 
Csharp :: search the third word in string in c# 
Csharp :: how to run a function as administrator in c# 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =