Python Program to Split a string having characters like ;/?.,- in between

Rajnilari2015
Posted by Rajnilari2015 under Python category on | Points: 40 | Views : 87
from System import *
from System.Linq import *

class Program(object):
def Main(args):
"niladri,arina/biswas?babai;RNA.Team-We All Are Same -Is not it?Yes it is".Split(Array[Char]((';', '/', '?', '.', ',', '-')), StringSplitOptions.RemoveEmptyEntries).ToList().ForEach()
Console.ReadKey()

Main = staticmethod(Main)


Result
-------

niladri
arina
biswas
babai
RNA
Team
We All Are Same
Is not it
Yes it is

Comments or Responses

Login to post response