Others REGEX nametag help!

Sep 6, 2017
210
624
Hey there, i'm looking for someone that can help me find a regular expresion that does the following:
-Find the first word on text boxes.
-And only if there is a linebreak next to it.

Here is an example of the "first word" (Jayne): 1648252607559.png


And why do i need it? Because whenever i use this
, it doesn't recognize Jayne as a nametag and uses it as part of the text:
1648253499329.png

The good thing is that this plugin is cappable to use REGEX to pick the first word and use it as a NAMETAG
forcing the word wrapping to start on below it.
By default, it uses 3 REGEX:
- ^.+:
- ^\[.+\]:
- ^\n<.+>+
So whenever the first word is: Jayne: - [Jayne] - <Jayne>
It will work as intended, Example:
2.png



So to make it short:

What regular expresion would you use to select the first word of a textbox if followed by a linebreak?
 
Sep 6, 2017
210
624
I did select the first word while testing it on
But it did not when i try it ingame.

I ended up using this: (.*[\n\t])

Thank you for taking your time helping me anyway!