Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

regex c#

// Retirer les espaces au début et à la fin

using System.Text.RegularExpressions;

Regex regex = new Regex(@"(^s+|s+$)");
regex.Replace(str, "");
Comment

PREVIOUS NEXT
Code Example
Csharp :: merge xml files into one c# 
Csharp :: html.beginform 
Csharp :: c# double to int 
Csharp :: c# random sleep 
Csharp :: c# string code ascii 
Csharp :: c# oops concept 
Csharp :: unity audio manager 
Csharp :: c# break from foreach method 
Csharp :: string to byte array c# 
Csharp :: joins List of strings 
Csharp :: xmldocument to c# object 
Csharp :: datetimeoffset to datetime c# 
Csharp :: github action get commit tag 
Csharp :: convert string to jtoken c# 
Csharp :: c# remove first three characters from string 
Csharp :: declare dictionary c# 
Csharp :: how use vue createApp 
Csharp :: C# using variables inside strings 
Csharp :: c# sort for loop 
Csharp :: convert list of tuples to dictionary c# 
Csharp :: c# merge two xml files 
Csharp :: convert html to pdf c# 
Csharp :: convert-integer-to-binary-in-c-sharp 
Csharp :: c# convert long to int 
Csharp :: c# string ends with 
Csharp :: how to concatenate two arrays in c# 
Csharp :: unity yield return 
Csharp :: c# wpf timer 
Csharp :: linq query in c# 
Csharp :: sorting list by date time dec in c# 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =