Is there a way to extract specific text from a string using Javascript?
For example, consider the following string:
"start-extractThis-234"
The numbers at the end can vary, but the hyphens are consistent.
I believe using regex to capture the text between the two hyphens could work.
Ultimately, I am looking for the extracted result to be:
extractThis