Jump to content

Get numbers from a sentence ?


Go to solution Solved by Terenz,

Recommended Posts

Posted

Hi,

Have you looked at the String* functions in the helpfile? Especially StringMid/StringInStr or _StringBetween? (or StringRegExp but I doubt you will be able to do something with it).

Br, FireFox.

Posted (edited)

Terenz

thank you bro appreciated

------------------------------------------------------------------------------------------------------------------------------------------------------------------

FireFox

thank you man you are a teacher and i am so lazy :P

Edited by Alexxander

Posted

Alexxander,

The RegExp solution given will extract all numbers, if you want only to extract the numbers between brackets, use this simple pattern: "[d]".

PS: A forum search will be faster than creating a topic and waiting for answers ;)

Br, FireFox.

Posted (edited)

 

Alexxander,

The RegExp solution given will extract all numbers, if you want only to extract the numbers between brackets, use this simple pattern: "[d]".

 

PS: A forum search will be faster than creating a topic and waiting for answers ;)

 

Br, FireFox.

FireFox

Bad guess.

"[d]" is  the same as "[0-9]" which is the same as "d".

If you want only to extract the numbers between brackets, use this simple pattern: "[(d+)]".

Edited by Malkey
Posted

 

FireFox

Bad guess.

"[d]" is  the same as "[0-9]" which is the same as "d".

If you want only to extract the numbers between brackets, use this simple pattern: "[(d+)]".

Yes sure  :>

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...