for example :
i wanna get *created by:* and *M* and don't get *proudly * or * proudly*(have space near * or * ) with regex in javascript.
//not work
let c = "RegExr was *created by:* gskinner.com, and is *proudly *hosted by *M*edia Temple.";
const regExr = /(\*\*)([^\s|\*])+([^\s|\*])(\*\*)/g;
this work ( tnx for @Wiktor Stribiżew )
const regExr = /\*([^*]*[^*\s])\*/g;
but not working for : * proudly*
i changed to -> /\*([^*\s]*[^*\s])\*/g
but don't get -> *created by:*