Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1494
Number of posts: 2174

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Special characters solution! Posted by meshteb on 1 Jun 2003 at 11:12 PM
Hi,

Would you guys have an idea on how to deal with input or check whether inputhas the following special characters, i.e. read a file of text
containing a list of words and check for the occurrence
of these characters:

or - as used in the word "p"

* or * - as used in the word "r*ma"

Š or š - as used in the word "lešaša"

If a word has any of these character replace each character by the
following characters respectively:

with \o^

* with \e^

š with \sh

I would appreciate it if you could have a short program to sort this issue out.


Let the file called words.doc (or having any extension) containing the following words.

"p r*ma lešaša"


Regards







 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.