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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 string manipulation

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ovince Posted - 09/17/2006 : 2:01:35 PM
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
4   L A T E S T    R E P L I E S    (Newest First)
ovince Posted - 09/20/2006 : 12:20:45 PM
thanks Zachary
zachary_origin Posted - 09/19/2006 : 05:09:23 AM
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
ovince Posted - 09/19/2006 : 02:04:59 AM
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



cpyang Posted - 09/17/2006 : 4:46:15 PM
Did you try the str.Match("*.txt") function?

CP



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000