0

Hello all i have string like (Attribute)-Company_02. in this i have to find the first occurrence of (Attribute)-. How to achieve this?

Thank you, Mihir

1
  • 1
    Do you want to match the string within ( and ) or the literal (Attribute)- ? Commented May 25, 2011 at 3:15

1 Answer 1

1

Use myString.indexOf("(Attribute)-")

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.