Simplicty and flexibility!


Function::String

StringBetween
StringBetween("MyString","FromString","ToString")
StringBetween("My HTML
This is a test
","
","
") - returning This is a test
retval := StringBetween(MyTextField,"[{Name}]","[{/Name}]")


Will search through a string and return the text between two search strings not inclusive i.e

Parameters


SearchString: Text

The source string that you are searching.

StartTag: Text

The tag that indicate the start of the text you are searching for.

EndTag: Text

The tag that indicates the end of the text you are searching for. If Endtag is not found, the function will return the remainder of the string.

Returns/Result


Text (255): The string between the search values, or the remainder of the text if Endtag is not found.

Examples


Reference

See Also


StringTo()
StringFrom()
MemoStringBetween()
MemoStringTo()
MemoStringFrom()

On the forum about StringBetween

MemoWriteToFile(),MemoReadFromFile(),MemoStringFrom(), MemoStringBetween() sample

Download Sample Seeing is believing, so please find attached a sample that showcase what you are looking for. In this sample we...

Product: Dataease [{8}]FIVE. Written by DataEase 20/03/15 at 10:34:53

Re:MemoWriteToFile(),MemoReadFromFile(),MemoStringFrom(), MemoStringBetween() sample

Got some time to sit down to look at this example.  Can't say much more than wow! ... Simple small scripts doing some clever stuff here, ans showing how to use functions to do the type of thing I'm looking for.Also showing off other things...

Product: Dataease [{8}]FIVE. Written by Simon B 23/03/15 at 12:13:11

Re:Re:MemoWriteToFile(),MemoReadFromFile(),MemoStringFrom(), MemoStringBetween() sample

We are glad that you are getting a glimpse &nbsp;of the sunny side of the DE8 coin.It is the biggest challenge for DE8 that it is deceptively similar to previous versions of DFW, when in reality it is a completely different beast altogether.<b...

Product: Dataease [{8}]FIVE. Written by DataEase 25/03/15 at 14:21:47

On the blog about StringBetween

New Function in 8 - StringBetween() - Cut out the string between to search values. (Ver. 8.0.0.1201)

This function is the last of a triumvirate consisting of StringTo(), StringFrom() and now StringBetween().Between them they will be able to chop up any string exactly like you want it.StringBetween is like and XOR of the two other o...

Product: Dataease [{8}]FIVE. Written by DataEase 16/01/13 at 14:32:16

DataEase 8 New Function - MemoStringBetween() - Copies the outer between from a Memo to another Memo (Ver. 8.0.0.1205)

Six man all! As we said in the army.The last of the Memo(String(To,From,Between)) functions are now finalised.&nbsp;You can now decompile any String or Memo in minute and exact detail.&nbsp;MemoStringBetween() copies the...

Product: Dataease [{8}]FIVE. Written by DataEase 22/01/13 at 13:56:17

MemoWriteToFile(),MemoReadFromFile(),MemoStringFrom(), MemoStringBetween() sample

Download Sample Seeing is believing, so please find attached a sample that showcase what you are looking for. In this sample we...

Product: Dataease [{8}]FIVE. Written by DataEase 20/03/15 at 10:47:00


dg3_HelpView