SAND CDBMS Tools Reference Guide
NDL++ Functions:
Syntax and Examples


Return to String Function Index

 

String Function Syntax and Examples


EXTRACTWORD( )

The EXTRACTWORD() function scans an input string for the nth occurrence of a substring. If found, the function returns the substring; otherwise it returns the empty string.

Syntax:

EXTRACTWORD(substring-number, input-string, delimiter-list)

where:


Example:

input: 2002-12-05-17.25.32.000000

IMPORT @sample.dat
{

RECORD
{
field1 *\r\n
}
schema1.table1
{
col1 EXTRACTWORD(4, field1, '.-/:')
}

}


Results:

schema1.table1.col1 17

 

Return to String Function Index