Author Topic: Function Between(Const Source, Delimiter1, Delimiter2: String): String;  (Read 1314 times)

0 Members and 1 Guest are viewing this topic.

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Just typed it out of my brain.. :)

Script Name: Between
Script Description Returns the value between two strings.
Author: Squiddy
Compile Test: Passed
Core Version: 2.6.5
Hosted by: Soldat Central - http://soldatcentral.com/

Full Description:

Function Between(Const Source, Delimiter1, Delimiter2: String):String;

Returns the string value between two delimiters.

For instance, doing

Between('Catch me if you can','Catch','can')

"Catch me if you can" = Source;
"Catch" = Delimiter1;
"can" = Delimiter2.

Would return me if you

If you are going to use it, then credit it.



(Size 753 B)
- http://soldatcentral.com/index.php?page=script&f=200 -


** Script hosted by Soldat Central! Please visit the author's script page and Rate this script **
www.soldatx.com.br - The brazilian Soldat community.