MyBB Community Forums

Full Version: [Request] Line break - MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to know if there is any line break code available.
Let's say something like HTML's <br /> tag. It could be something like [br].
I just can't use "Enter" key to force a line break in my case. (I can explain you more if needed.)

Thanks.
Sorry I've deleted my previous post.

Do you mean "line" break just like <br/> tag in HTML ?
(2010-12-27, 04:44 PM)Yaldaram Wrote: [ -> ]Sorry I've deleted my previous post.

Do you mean "line" break just like <br/> tag in HTML ?
Yes that's what I mean.Big Grin
Thanks for your quick reply too!
Why not press "Enter" key to break the lines ?
Try this;
Regular Expression:
\[(.*?)\]

Replacement:
<br />

Usage:
[br]
Cool, works like a charm.
Thank you again!
Thanks.
(2010-12-27, 04:48 PM)Yaldaram Wrote: [ -> ]Why not press "Enter" key to break the lines ?

I was wondering the same thing. Seems like this would waste resources, granted it would be very little but still, in some cases each bit counts.
(2010-12-27, 04:48 PM)Yaldaram Wrote: [ -> ]Why not press "Enter" key to break the lines ?
Try this;
Regular Expression:
\[(.*?)\]

Replacement:
<br />

Usage:
[br]

That Regular Expression is incorrect.

\[br\]
Is the correct regex for this. The regex you posted will insert a line break after ANYTHING in [] brackets.
@Dylan M.
Yes, I just noticed that my [img] tag wasn't working.
That fixed the problem.
Also, I don't use "Enter" because I can't; I'm making a default subject for "Contact Us" link by using a URL (private.php?action=send blah&subject=..)Big Grin

That's all..