testRegexps2 1.15 KB
Newer Older
shunbo's avatar
shunbo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Pattern, String
(
    ( true  "(U|k|epsilon)"  "U" )
    ( false "(U|k|epsilon)"  "alpha" )
    ( true  "(?!)(U|k|epsilon)"  "alpha" )
    ( true  "(?! *&)(U|k|epsilon)"  "alpha" )   // Ignore unknown content
    ( true  "ab.*"  "abc" )
    ( true  ".*"  "abc" )

    ( true "div\(phi,alpha.*)"   "div(phi,alpha.gas)" )   // quoting error
    ( true "div\(phi,alpha.*\)"   "div(phi,alpha.gas)" )
    ( true "div\(phi,alpha\..*\)" "div(phi,alpha.gas)" )
)

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //