best php scripts for your website

home page latest news web development curriculum vitae php scripts contact me

  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing


  • Curriculum Vitae (CV)
  • Major web solutions
  • Web design projects
  • Software solutions

How to use the static Regex.Split() to split strings in C# ?

Free programming example written by Anton Zamov


As you might know the string Split method allows you to split
astring only be a specified character. If you wish to split
a string using the power of the regular expressions to specify
the delimiter a good solution is to use the Regex.Split() method
 
using System.Text;
using System.Text.RegularExpressions;
 
...
 
string strText=" Development @@ of @@ online @@ pharmacy @@ web @@ solutions ";
 
foreach(string strItem in Regex.Split(strText,"@@")){
 Console.WriteLine(strItem);
}
 

will print:
 
Development
of
online
pharmacy
web
solutions











Jobs Portal, poweful jobs board software

PHP Mall, multi vendors mall website software

Car Portal, php script for auto classifieds websites

NetArt Media, software products and services

Real Estate Portal, web software for real estate portals

Blog System, multi user blog hosting script

PHP Store, powerful e-commerce system written in PHP


C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright Anton Zamov 1998 - 2023