Forum Moderators: coopster

Message Too Old, No Replies

Returning info between two known elements

         

IamStang

3:14 am on Dec 23, 2005 (gmt 0)

10+ Year Member



I have a need to return the information submitted between 2 known elements. For example, a person submits the following:

Today is the <b>22nd</b> day of December.

I need to return "22nd" or whatever might appear between the <b> and </b>.

Please dont give me actual code to do this. Just point me in the right direction. I know it has to be something fairly simple that I am just overlooking.

Thanks!
IamStang

crackerjack138

6:08 am on Dec 23, 2005 (gmt 0)

10+ Year Member



Look in the string library of functions. You will need to do what is called "parsing" of tokens within a text stream.

I won't name the function, but think of finding a string within an string.

IamStang

6:58 pm on Dec 26, 2005 (gmt 0)

10+ Year Member



Sorry for the delay in replying! Been away for the holidays.

Thank you!
And Happy Holidays to all!