RegEx Help Needed Urgently

Hi,

I have composed a Regex to capture the whitespace, and wording before the ‘•’

(\b(\w+)\s•)

This works fine, but I need it to be able to pickup whitespace, letter, numbers, brackets too

Can anyone assist,

Thanks

Steve

Without code it,s hard to say and Regex are difficult, one way is to practice and practice. I can give you this link.1: test regex, 2: MDN mozilla

first of all you dont need parentheses around your entire expression since / already encases it
second of all, /[^\u2022]*(?=\u2022)/ is what you want
(this is assuming the regex you use works the same as regexr.​com (link doesn’t work cuz I inserted a U+200B character to prevent it from making a link or it wouldn’t let me reply))