I want to work on a BBCCC filter for a php website. (I am using the KPPP, it will be a BBCOD subsidiary) I have some requirement.
If BBSD can be nested, then something like this is valid. [Block] [block] [/ block] [block] [block] [/ block] [/ block] [/ block] The BBCode can have 0 or more parameters. Example: There may be mitiple behavior in BBCOS. Say, I think it covers most of my needs I did something with something again but my The biggest problem was to match the parameters. In fact, I was invited to work with BB code and BB code with 0 parameters. But when I added a regex match to the parameters, it did not match correctly with the nested BBCD. I will use sablecc to make my text parser. Anyone Better idea? Or anything that can cause a convenient flexible BBCC parser? Thanks and sorry for my bad english ...
[video: url = "url", width = "500", height = "500"] title [/ video] / Code>
[url] text [/ url] to
[url: url = "text"] text [/ url]
Or the video will be converted to BBODAd, able to choose between daily motion .... "[[tag] (=. *) \" \] (. *) \ [\ / \ 1 \] "
// It was not. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * With rxax or something else The only way I can think of is to use the Visitor Pattern and to separate my text from every possible tag, there is some more control over the parsing of my text. : Can validate my document, if the valid text in the input text B code. I can inform the user with an error before saving anything.
< Div class = "post-text" itemprop = "text">
both there and bbcod parsing l The problems of the software are without reconstruction of their working years.
If n is one of these alternatives, I focus on converting BBCode into a valid XML string, and then using its preferred XML parsing routine on it.
Change all too much [and] in & lt; And & gt; [Tag Name:
If Bbcd was nested properly, you are ready to pass this string in an XML parsing object (simple XML, doc document, etc.) Should be
Comments
Post a Comment