ppr
(Peter Preuss)
November 8, 2021, 3:59pm
1
This topic references the different CheatSheets related to VB.Net It will be updated on new published CheatSheets as well.
Regular Expressions - RegEx
This CheatSheet introduces the basic use of regex functions. With further examples also special cases are presented.
Introduction
From the namespace System.Text.RegularExpressions following methods are offered:
Regex.Match
Regex.Matches
Regex.isMatch
Regex.Replace
Regex.Split
A simple usage for example would look like this:
[grafik]
Recommendation:
add System.Text.RegularExpressions to the imports:
[grafik]
it allows to use the shortened statement, as the namespace part can be ommited…
File System API
This CheatSheet introduces the basic use of available functionalities provided by the .Net API in order to deal with the filesystem. With further examples also special cases are presented.
Basic Usage
System.IO.Directory
Directory offers some static methods for basic operations on folder and subfolders
arrFullFilePaths | String() = Directory.GetFiles("C:\_demo\FileSystem\SubfolderA")
Visuals
System.IO.DirectoryInfo
The DirectoryInfo class offers instance methods for basic operations on fol…
String Manipulations / Functions
[image]
Category
Example
Sample Input
Expected Output
Basic
st.ToUpper
hello
HELLO
Basic
st.ToLower
HELLO
hello
Basic
st.Trim
text
text
Basic
st.TrimStart
text
text
Basic
st.TrimEnd
text
text
Basic
st.Length
text
4
Basic
String.IsNullOrEmpty(st)
True
Basic
String.IsNullOrWhiteSpace(st)
True
Basic
String.Concat(str1, str2)
Ui,Path
UiPath
Basic
String.Join(“,”, arrString)
{‘A’,‘B’,‘C’}
A,B,C
Substring
st.Substring(0,5)
Invoice123
Invoi
Substring
st.Substring(st.Le…
About the CheatSheet Series
The CheatSheet series covers various programming topics and lists selected API statements. In addition to the help given, the CheatSheets can also be used to check one’s own knowledge and to explore further development approaches.
Recommendations
Training courses from Academy
Debugging course from Academy (Highly recommended)
Questions
For questions on your individual case open a new topic and get individual support.
12 Likes
you are so goated for this bro