Jeepers
12-27-2002, 07:55 PM
Hi all
I need to extract one string from another. The string I want to create will always be between the same set of character, for example:
I need to create the new string of 'Hello' from the string '12345< Hello >abcde' the <+space character (‘< ‘) and space character+> (‘ >’) will always mark the beginning and end of the string that needs to be extracted, what is between the markers will always be different. By the way this has nothing to do with extracting the tag names from HTML code, I have just used those characters as an example.
I thought a regular expression may be the answer because the marker characters will always be the same, but I have absolutely no idea on how to do this.
Any help gratefully received.
I need to extract one string from another. The string I want to create will always be between the same set of character, for example:
I need to create the new string of 'Hello' from the string '12345< Hello >abcde' the <+space character (‘< ‘) and space character+> (‘ >’) will always mark the beginning and end of the string that needs to be extracted, what is between the markers will always be different. By the way this has nothing to do with extracting the tag names from HTML code, I have just used those characters as an example.
I thought a regular expression may be the answer because the marker characters will always be the same, but I have absolutely no idea on how to do this.
Any help gratefully received.