Kevin
Well-known member
Is this doable in javascript?
If I have a string like "James and the Giant Peach (tt0116683)" (without the quotes) I want to see if the string ends with an opening & closing parenthesis and if what is in the parenthesis starts with "tt" then, if it meets that criteria, to remove the content in the parenthesis & the parenthesis characters.
In the example of "James and the Giant Peach (tt0116683)" it'd be see if the string ends with "(tt{value})" and if the condition is true then end up with just "James and the Giant Peach".
If I have a string like "James and the Giant Peach (tt0116683)" (without the quotes) I want to see if the string ends with an opening & closing parenthesis and if what is in the parenthesis starts with "tt" then, if it meets that criteria, to remove the content in the parenthesis & the parenthesis characters.
In the example of "James and the Giant Peach (tt0116683)" it'd be see if the string ends with "(tt{value})" and if the condition is true then end up with just "James and the Giant Peach".