Jump to content
Sign in to follow this  
Steven Vandenhoute

extract letters from a word

Recommended Posts

Steven Vandenhoute

i have a little question.

i have a couple of 100 words like this

abc123

abc456

abc789

...

What I like to do is create a autoIT script which can extract the numbers from the word.

So I want to delete abc and keep the numbers in a variable.

Is this possible? And if so, how can I do it?

I was searching in the help file for an extract command, but can't find anything.

Thanks for the i nfo


"You cannot solve a problem with the mind that created it" (Albert Einstein)

Share this post


Link to post
Share on other sites
pinkfoyd

i have a little question.

i have a couple of 100 words like this

abc123

abc456

abc789

...

What I like to do is create a autoIT script which can extract the numbers from the word.

So I want to delete abc and keep the numbers in a variable.

Is this possible? And if so, how can I do it?

I was searching in the help file for an extract command, but can't find anything.

Thanks for the i nfo

search for the StringTrimLeft fucntion:

Trims a number of characters from the left hand side of a string.

StringTrimLeft ( "string", count )

Parameters

string The string to evaluate.

count The number of characters to trim.

Return Value

Returns the string trimmed by count characters from the left.

Share this post


Link to post
Share on other sites
Steven Vandenhoute

thanks for the info...

helps me a lot


"You cannot solve a problem with the mind that created it" (Albert Einstein)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×