The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 string manipulation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ovince

Yugoslavia
Posts

Posted - 09/17/2006 :  2:01:35 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello All,

I am curious if it is posible to easily manipulate strings like regex in Perl for example? Where to read about it?

oliver

cpyang

USA
1406 Posts

Posted - 09/17/2006 :  4:46:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Did you try the str.Match("*.txt") function?

CP


Go to Top of Page

ovince

Yugoslavia
Posts

Posted - 09/19/2006 :  02:04:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi,

I am not sure that I learned much about Match function reading Origin's help.

For example, if I have a text like "I would like to extract words" how to extract word "like"?

Thanks
oliver



Go to Top of Page

zachary_origin

China
Posts

Posted - 09/19/2006 :  05:09:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Oliver,

Here is an example from the Help file.


string str4("Happy Birthday");
ASSERT(str4.Find("day",4)==11);



For more information about usage of string class in Origin C, you can see in Origin C Language Reference.
( select Help: Programming on the menu to open the Programming Help. Then select Contents:Origin C Language Reference: Classes: Composite Data Type: string.)

Hope it helps.



Zachary
OriginLab GZ Office

Edited by - zachary_origin on 09/19/2006 05:11:41 AM
Go to Top of Page

ovince

Yugoslavia
Posts

Posted - 09/20/2006 :  12:20:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks Zachary
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000