- Sep 6, 2017
- 210
- 625
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):
And why do i need it? Because whenever i use this
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:
So to make it short:
What regular expresion would you use to select the first word of a textbox if followed by a linebreak?
-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 1648252607559.png](https://attachments.f95zone.to/2022/03/thumb/1745554_1648252607559.png)
And why do i need it? Because whenever i use this
You must be registered to see the links
, it doesn't recognize Jayne as a nametag and uses it as part of the text:![1648253499329.png 1648253499329.png](https://attachments.f95zone.to/2022/03/thumb/1745579_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 2.png](https://attachments.f95zone.to/2022/03/thumb/1745599_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?