strextrbefore

Extract substrings before specified positions or string

Arguments

  1. String, vector or matrix of strings
  2. Pattern or position, string, vector or matrix of strings/positions

Output

String, vector or matrix