Splitting a String Using Regular Expression

.Net Regular Expression engine is more powerful than VBScript Regular Expression engine. RegEx is one of the classes of .Net Regular Expression engine. Using the Split method available in RegEx class, we can split a string with Regular Expression pattern. Let us see the implementation below.

Code

Synopsis

This method is very useful whenever we need to split a string with Regular Expression pattern.

Note: Since ‘RegEx’ Split method returns String array, VBScript Array cannot hold the elements which are returned by this Split method.

[Total: 2    Average: 5/5]