Jump to content

Left Text of a specific word


This topic is 6117 days old. Please don't post here. Open a new topic instead.

Recommended Posts

name: Left Of

parameters: string, matchstring

definition:

Let(

FirstCharOfMatchString = Position ( string; matchstring ; 1 ; 1 );

Left( string; FirstCharOfMatchString - 1 )

)

All you have to do is pass the string you are `searching for` as matchstring and the string you are `searching` as string. As an example:

Left Of ( "This post was just in time to fix the problem" ; " time" )

would return "This post was just in ". A caveat to this approach is that it will match words like timely or multimedia

Edited by Guest
Link to comment
Share on other sites

This topic is 6117 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.