How to write regex for bullet space digit and dot

java, regex

Solution

To match the bullet character you will need to use the unicode escape sequence. However Unicode defines several bullet styles, so it's probably best to allow for all of them:

[\u2022,\u2023,\u25E6,\u2043,\u2219]\s\d\.\s[A-z]

This should match the following bullet styles:

- Bullet (•)

- Triangular Bullet (‣)

- White Bullet (◦)

- Hyphen Bullet (⁃)

- Bullet Operator (∙)

Reference: https://en.wikipedia.org/wiki/%E2%80%A2

Problem

I am using regex for my sentence contains bullet space digit and dot. ``` • 1. This is sample Application • 2. This is Sample java program ``` regex: ``` •\\s\\d\\.\\s[A-z] Required output: This is sample Application. This is Sample java program. ``` its not working.Please Suggest me how to do this.

Original source