[Solved] How to validate all the numbers including phone and telephone numbers of hongkong with country code using regex? [closed]

Introduction Validating phone and telephone numbers of Hong Kong with a country code using regular expressions (regex) can be a daunting task. However, with the right knowledge and understanding of regex, it can be done quickly and accurately. In this article, we will discuss the basics of regex and how to use it to validate … Read more

[Solved] How to convert .Net code to vbscript?

You have to use the FileSystemObject. Hint: This could be googled very easily. Example: Sub HideFolderFiles(filespec) Dim fs, f, r Set fs = CreateObject(“Scripting.FileSystemObject”) Set f = fs.GetFolder(filespec).Files f.attributes = 2 ‘hidden End Sub Source: https://www.experts-exchange.com/questions/28054761/VBScript-to-set-file-attributes.html 2 solved How to convert .Net code to vbscript?

[Solved] How to get an image of each letter from image with text [closed]

As a basic technique, use binarization and connected component analysis. This will give you “blobs” corresponding to the individual characters and you can get their bounding boxes. You will face extra difficulties: some characters can touch and form a single blob. You will need some detection logics to split them, for instance based on size … Read more

[Solved] how to overload the == operator for strings? [closed]

You can’t override operators for pre-existing classes. The closest you can get is to make an extension method: public static bool EqualsCaseInsensitive(this String a, String b) { return String.Equals(a, b, StringComparison.OrdinalIgnoreCase); } You can use it like so: var areSame = stringA.EqualsCaseInsensitive(stringB); That being said, it’s considered bad practice to add extension methods to core … Read more

[Solved] How to sort listbox with letters and numbers ascendent by numbers vb.net

It looks like you are actually looking for descending order. Anyways, here is a solution from one list to another: Dim myList As List(Of String) = {“test|10”, “name|44”, “blabla|16”}.ToList Dim orderedList As List(Of String) = (From item In myList Order By item.Substring(item.IndexOf(“|”) + 1) Descending Select item).ToList EDIT: This will sort the items as strings, … Read more

[Solved] List with numbers and text

There are many options, I describe some of them for you use Dictionary<int, string>Pros: very fast lookupCons: you can not have two string with same number, you don’t have a List var list2d = new Dictionary<int, string>(); list2d[1] = “hello”; list2d[2] = “world!”; foreach (var item in list2d) { Console.WriteLine(string.Format(“{0}: {1}”, item.Key, item.Value); } use … Read more