Difference between revisions of "Yurttas/PL/OOL/CS/F/02/06/01/Regex00.cs"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2003 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...")
 
(No difference)

Latest revision as of 07:46, 7 November 2013

 1/**
 2 *  Copyright(C) 2003
 3 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4 *
 5 *  Permission to use, copy, modify, and distribute this
 6 *  software and its documentation for EDUCATIONAL purposes
 7 *  and without fee is hereby granted provided that this
 8 *  copyright notice appears in all copies.
 9 *
10 *  @date   : September 1, 2003
11 *  @author : Salih Yurttas
12 */
13
14
15using System;
16using System.Text;
17using System.Text.RegularExpressions;
18
19public class Regex00
20{
21
22  public static void Main(string[] args)
23  {
24    string a = "A. B,  C, D.";
25
26    Regex r = new Regex(" ");
27
28    StringBuilder t = new StringBuilder();
29
30    foreach(string s in r.Split(a))
31      Console.WriteLine(s);
32  }
33
34}