- match() only does a full match - find() and search() do partial matches search() is similar to the name coming into C++ TR1
22 lines
911 B
C++
22 lines
911 B
C++
/*-------------------------------*- C++ -*---------------------------------*\
|
|
| ========= |
|
|
| \\ / OpenFOAM |
|
|
| \\ / |
|
|
| \\ / The Open Source CFD Toolbox |
|
|
| \\/ http://www.OpenFOAM.org |
|
|
\*-------------------------------------------------------------------------*/
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// pattern, string
|
|
(
|
|
( "a.*" "abc" )
|
|
( "a.*" "bac" )
|
|
( "a.*" "abcd" )
|
|
( "a.*" "def" )
|
|
( "d(.*)f" "def" )
|
|
( " *([A-Za-z]+) *= *([^ /]+) *(//.*)?" " keyword = value // settings" )
|
|
)
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|