Hi i have code like this:
<span class="someclass" style="display:none"></span> Some text
how to match only the “Some” word? with regExp for Javascript
10x
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to put “Some text” into a ‘div’ so you can reference it
That will return true
Here is a working version: http://jsfiddle.net/4df3w/1/
Change the text inside to see the difference.
EDIT: I see you didn’t literally mean the word ‘Some‘. Put the text in a div, and in the function do this:
http://jsfiddle.net/4df3w/3/