Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: find a string from another string.
Replies: 4   Last Post: Nov 15, 2012 3:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Moon Datta

Posts: 32
Registered: 8/16/12
find a string from another string.
Posted: Nov 15, 2012 1:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a string like below,

'N6E01110925D00ASYWDCC2KYOTO'
'N6E01110925D01ASYWDCC2KYOTO'
'....................................................
....................................................
'N6E01110925H00ASYWDCC2KYOTO'
'N6E01110925H01ASYWDCC2KYOTO'
'---------------------------------------------------
----------------------------------------------------
'N6E01110925D00SYMWDCC2KYOTO'
'N6E01110925D01SYMWDCC2KYOTO'
----------------------------------------------------
----------------------------------------------------
'N6E01110925H00SYMWDCC2KYOTO'
'N6E01110925H01SYMWDCC2KYOTO'


I need a program which will give me the index number of the line where it will see
'H00SYM' in the whole string. Except this string 'H00SYM' all string of the whole string are variable for different file.


can anyone help me?

with thanks
Moon




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.