When using a multi-line textbox, I encountered the following string:
index a<3
2<x
I want to use regex to add a space after the character '<' if there isn't already one present. If there is already a space after the character '<', it should remain untouched.
The desired output should be:
index a< 3
2< x
I attempted to use (?<=<)(?!$) and <[^\s]+
, but they resulted in syntax errors when used within Javascript.
While these solutions work on the back end (C#), I would prefer not to make a server request for this task as it is not an ideal solution.