Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / test / dictionary / testDictRegex
blobdc7585a6e7c4b6eaa31f704c48e01ac8ca5de21b
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
4 |  \\    /   O peration     | Version:  2.0.0                                 |
5 |   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
6 |    \\/     M anipulation  |                                                 |
7 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       dictionary;
13     object      testDictRegex;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16 #inputMode  merge
18 ".*"        parentValue1;
19 "[n-z].*"   parentValue2;
20 "f.*"       parentValue3;
21 keyX        parentValue4;
22 keyY        parentValue5;
24 "(.*)Dict"
26     foo         subdictValue0;
27     bar         $f.*;         // should this really match 'foo'?
29     // result is dependent on insert order!
30     "a.*c"      subdictValue3;
31     "ab.*"      subdictValue2;
32     "a.*"       subdictValue1;
33     abcd        \1;
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //