Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
find a string from another string.
Posted:
Nov 15, 2012 1:49 AM
|
|
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
|
|
|
|