mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- 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" )
|
|
)
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|