1
My question is the following, I have the content below that comes from a table in a database and I would like to use a regular expression or if you have something better, to separate only the content from within the brackets.
[pt-br]
Qual is Lorem Ipsum?
Lorem Ipsum is simply print dummy text and composition industry. Lorem Ipsum has been the standard text of the manikin industry since the 1500s, when an unknown printer took a type galley and scrambled it to make a specimen type book. It survived not only five centuries, but also the leap to electronic composition, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and most recently with software publishing as Aldus Pagemaker, including versions of Lorem Ipsum.
[/pt-br]
[en-us]
What is Lorem Ipsum?
Lorem Ipsum is Simply dummy text of the Printing and typesetting Industry. Lorem Ipsum has been the Industry’s standard dummy text Ever Since the 1500s, when an Unknown Printer Took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the Leap into Electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset Sheets containing Lorem Ipsum Passages, and more recently with desktop Publishing software like Aldus Pagemaker including versions of Lorem Ipsum.
[/en-us]
http://answall.com/questions/121285/como-pegar-as-strings-que-estao-entre-colchetes
– user60252
I believe that this "inside the brackets" is the content between the tags
[pt-br]
and[/pt-br]
, but the idea remains the same.– Woss
good, the content is [en] content here [/en] so on.
– Osvaldo Queta