Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6068771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:45:02+00:00 2026-05-23T09:45:02+00:00

I am copyig some data from the MS Word. That text may contain or

  • 0

I am copyig some data from the MS Word. That text may contain or May not contain Bullets in the copied text. But i need a Regular expression in javascript to remove any type of Bullets from the copied text.
for example if i copy the text which is having bullets it is coming like this when i paste it.
Here are some examples

 1.   Jnflkvkbfjvb
 2.   Kjnfbhvjbv
 3.   ;kbvrjvbrjvb 

 •    Jnflkvkbfjvb  
 •    Kjnfbhvjbv  
 •    ;kbvrjvbrjvb  

 a)   Jnflkvkbfjvb
 b)   Kjnfbhvjbv
 c)   ;kbvrjvbrjvb 

 A.   Jnflkvkbfjvb
 B.   Kjnfbhvjbv
 C.   ;kbvrjvbrjvb 

  I.      Jnflkvkbfjvb
 II.      Kjnfbhvjbv
III.      ;kbvrjvbrjvb 

But My requirement is to display without any of these bullets.It has to display

       Jnflkvkbfjvb
       Kjnfbhvjbv
       ;kbvrjvbrjvb

My code is

      var  x=" •    Jnflkvkbfjvb•    Kjnfbhvjbv•    ;kbvrjvbrjvb 1.     Jnflkvkbfjvb2.    Kjnfbhvjbv3.    ;kbvrjvbrjvb ";
      x= x.replace(/[•\t.+]/g, ''); 
      x= x.replace(/[[1-9][.]\t.+]/g, '');
      alert(x);

Please someone help me.
You can use this to edit the code
http://jsfiddle.net/V2aSg/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:45:03+00:00Added an answer on May 23, 2026 at 9:45 am

    Try this

    /^\s*(?:[\dA-Z]+\.|[a-z]\)|•)\s+/gm
    

    See it here at Regexr

    This checks

    ^ The start of the row (with the modifier m)

    \s* any amount of whitespace

    [\dA-Z]+\. At least one (+) digit or A-Z followed by a dot

    or

    [a-z]\) a-z followed by a )

    or

    •

    \s+ At least one whitespace at last

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an application where we need to de-serialize some data from one stream
Possible Duplicates: How to remove Bullets from the text using javascript regular expression How
I have an iPhone application that pulls some JSON data from a server and
I'm copying a subset of some data, so that the copy will be independently
Summary: exporting pixel data from NSOpenGLView to some file formats gives incorrect colours I
I am copying some user data from one SqlServer to another. Call them Alpha
I'm writing a system at the moment that needs to copy data from a
I have a MySQL query that is copying data from one table to another
I'm using a Java program to POST some XML data from a remote client
I am using async_read_some to read data from a port that is saved in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.