set regex
This commit is contained in:
parent
54d4c86867
commit
5e8a30937f
1 changed files with 9 additions and 1 deletions
|
|
@ -7,10 +7,18 @@
|
|||
using namespace std;
|
||||
|
||||
int main(int argc, char const *argv[])
|
||||
{
|
||||
{
|
||||
|
||||
|
||||
ifstream puzzle("puzzleInput", ifstream::in);
|
||||
|
||||
if(!puzzle){
|
||||
return 1;
|
||||
}
|
||||
|
||||
//regex
|
||||
regex regexToSearch("(mul\(\d+,\d+\))")
|
||||
|
||||
string line;
|
||||
while (getline(puzzle, line))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue