v4.1.2

Extract line chunk before/after Nth word

Get line substring before or after given word index position.

App usage

Parameters

Parameter 1
Description: Word index position
Type: Integer
Required: true
Parameter 2
Description: Line chunk position with respect to param1
Type: String
Required: false
Options: Before | After
Default: Before

Example


# INPUT TEXT
The quick brown dog jumped over the 
lazy fox. The quick brown dog jumped 
over the lazy fox. The quick brown dog.
jumped over the lazy fox. The quick
brown dog jumped over the lazy fox.
The quick brown dog jumped over the 
lazy fox. The quick brown dog jumped 
over the lazy fox. The quick brown dog.
jumped over the lazy fox. The quick
brown dog jumped over the lazy fox.

# Parameter 1
3

# Parameter 2
Before

# RESULT USING EXAMPLE PARAMETERS
The quick brown
lazy fox. The
over the lazy
jumped over the
brown dog jumped
The quick brown
lazy fox. The
over the lazy
jumped over the
brown dog jumped

API usage

You can find all required parameters and multi-language examples on our RapidAPI page.