Is there any way to make something.+()[]*
matching literally 'something.+()[]*'? I'm using regex builder so manual escaping is not allowed. Sure, i can add hardcoded checks if (char === '+') return '\+'
but i'm looking for native solution or better way
UPD
I'm sorry. I forgot to add that matching should be in given order with moving forward but not back. So [+.]
will not fit my requirements because it will match both +.
and .+
. I need only first case (In definition order)