remove « regex « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » regex » remove 

1. how to remove a character with jquery    stackoverflow.com

I have this:

<span class="name"><span class="gost">Yahoo</span>, </span>
I tried something like this, but no luck:
$("span.name").html(
 $(this).replace(/,/g, '')
);

2. Remove special characters in string with Regexp- jQuery    stackoverflow.com

Who can help me with regular expression , to remove some string with jquery, don't have much experience in regex

<div class="test" >
    &nbsp;&gt;&nbsp;&nbsp;&gt;&nbsp;Test Text
</div>
I want to remove "&nbsp;&gt;&nbsp;&nbsp;&gt;&nbsp;" ...

3. Regular expression, remove the last specific character in the string with jQuery    stackoverflow.com

I want to continue one task because my head has some problem with a regular expression. How can it be done with a regular expression and jQuery? I have this HTML:

<div class="test">&nbsp;&gt;&nbsp;&nbsp;&gt;&nbsp;Presentation ...

4. How to remove code from HTML string?    stackoverflow.com

I have a variable that has this string:

<DIV><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">[If the confirmation is active the subscriber will receive this email after succesfully confirming. If not, this will be the ...

5. How to remove periods in a string using jQuery    stackoverflow.com

I have the string R.E.M. and I need to make it REM So far, I have:

$('#request_artist').val().replace(".", "");
...but I get RE.M. Any ideas?

6. Need to either match sting or remove unwanted characters from string    stackoverflow.com

I have the following variable which is the selected text of a select box. This is the select box markup.

<select name="SELECT___100E___7">
<option selected="" value="25">Beige/Almond</option>
<option value="21">Blue [Subtract -$1.00]</option>
<option value="27">Chrome [Subtract -$2.00]</option>
<option value="29">Red [Add ...

7. Regexp to add and remove text before file ending    stackoverflow.com

I want to change the src of an image.

var string = "/images/myimage.png";
on mouseover I want to add _hover to myimage ("/images/myimage_hover.png") and on mouseout I want to remove "_hover". Does anyone have a ...

8. remove all characters up to £ and remove last character ]    stackoverflow.com

I have the following option text that I want to put into a variable plus remove all characters except the value after the £ then convert it to a number. In ...

9. Remove html special character with regex and jQuery    stackoverflow.com

What is the necessary regular expression to match the € special character from the following html string?

&euro;20.000.000,00
Ultimately, I want to strip the € symbol from the number. Currently, my code looks ...

10. Removing ASCII « OR » from a string in JavaScript    stackoverflow.com

I am trying to remove either « or » from a string to leave the remainding text in javaScript. Have tried this to no effect:

$('body').delegate('.SearchPagination > a', 'click', function(e){
    ...

11. Remove punctuation from beginning and end of string    stackoverflow.com

I have a string and I want to remove any - ,( ,) ,& ,$ ,# ,! ,[ ,] ,{ ,} ," ,' from the beginning or end of the word. ...

12. Remove colon from part of text via jQuery?    stackoverflow.com

I had a similar question posted previously but this is a little bit different. I am looking to remove the colon from the below price code utilizing jQuery. ...

13. Regex for File and Symbol Remove?    stackoverflow.com

I have the following regex

/(\.|\/)(gif|jpe?g|png)$/i
Which works for fileNames in ensuring on gif, jpeg and png's are accepted. However, I want to extend this code to also check "fileNames" and ensure ...

14. [jQuery] Is there a way to use regex to remove text from a filename    forum.jquery.com

Re: [jQuery] Is there a way to use regex to remove text from a filename 3 years ago somthing like this is what you want have not got the time to finishthis good luck with the rest. may need a for loop instead