mjarner
asked on
Get content inside (brackets)
Hi
I am trying to make a javascript function that checks if the input containes brackets, and then use the content inside the brackets. The string should then be shortened and made into a number I can use to add another number.
Example:
input: test string(+100abc)
output: 100
Example 2:
input: anotherstring (+123.45abc)
output: 123.45
Thanks in advance!
I am trying to make a javascript function that checks if the input containes brackets, and then use the content inside the brackets. The string should then be shortened and made into a number I can use to add another number.
Example:
input: test string(+100abc)
output: 100
Example 2:
input: anotherstring (+123.45abc)
output: 123.45
Thanks in advance!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window