Wrox Programmer Forums
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 2nd, 2005, 02:57 AM
Registered User
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default tokenize

could anyone help me as i am making a small project of a compiler
in c# (windows application)
i need to know how to write the function that split the string into tokens as i keep trying to make it and it always fire errors
note : i take my input from a richtextbox

Old December 3rd, 2005, 10:43 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Can you provide an example of what you have so far?
How are your tokens structured?

Typically, if you want to split a string using some character, you write something like:


That will split the string on the ; character into an array of strings.


Similar Threads
Thread Thread Starter Forum Replies Last Post
tokenize bbvic XSLT 1 July 19th, 2007 04:10 PM
<xsl:for-each select="tokenize($indoc,'&#xA;')"> kapy_kal XSLT 4 June 9th, 2006 07:33 AM
Functions replace and tokenize not found. spencer.clark XSLT 2 July 20th, 2005 02:51 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.