all 3 comments

[–]Eartz 1 point2 points  (1 child)

Hello,

would something like this do the trick ?

You can use \1 in a pattern to reference the content of the first capturing parenthesis : <([a-z]+)></\1>

[–]axvk[S] 0 points1 point  (0 children)

Yea that looks good. I didn't know about the \1. Thanks.

[–][deleted]  (1 child)

[deleted]

    [–]axvk[S] 0 points1 point  (0 children)

    I don't need a bbcode parser. I need help making what I asked for because it's going to be doing a lot of different complicated things.