# Wiki source code of RegEx

Last modified by Asbjørn Ulsberg on 2018/09/06 14:42

#### Export

#### Office Formats

Export as PDF Export as ODT Export as RTF

#### Other Formats

Select the pages to export:

select all / none

Export as HTML
Hide last authors

| 1.1 | 1 | {{velocity}}
|  | 2 | #set ($content = $doc.getContent())
|  | 3 | #set ($pattern = $regextool.compile('\(%\s+class="jumbotron"\s+%\)\s+\(\(\(\s+\(%\s+class="container"\s+%\)\s+\(\(\(\s+(.+)\s+\)\)\)\s+\)\)\)'))
|  | 4 | #set ($matcher = $pattern.matcher($content))
|  | 5 | #if ($matcher.find())
| 2.1 | 6 | $matcher.group(1)
| 1.1 | 7 | #else
| 2.1 | 8 | No match!
| 1.1 | 9 | #end
|  | 10 | {{/velocity}}
|  | 11 |
|  | 12 | (% class="jumbotron" %)
|  | 13 | (((
|  | 14 | (% class="container" %)
|  | 15 | (((
|  | 16 | ... Content here ...
|  | 17 | )))
|  | 18 | )))