Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Arthur BOSSHARDT
Projet_Tutore_ANNEE_2
Commits
7df6398a
Commit
7df6398a
authored
Nov 10, 2017
by
Clement GAUDUCHEAU
Browse files
fin du regex
parent
25de97c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/extraireCitation/extraireCitation.php
View file @
7df6398a
...
...
@@ -71,13 +71,14 @@ function suppr_accents($str, $encoding='utf-8')
}
else
{
// sinon affichage normal
if
(
$j
==
1
){
$matrice
[
$ligneMatrice
][
$colonneMatrice
]
=
$split1
[
$j
];
if
((
preg_match
(
"#^[
\"
\"
][^p]#"
,
$split1
[
$j
])))
$matrice
[
$ligneMatrice
][
$colonneMatrice
]
=
$split1
[
$j
];
}
else
{
$split1
[
$j
]
=
suppr_accents
(
$split1
[
$j
]);
//echo $split1[$j];
//"#^[^p][(]?[\" \"]?[1|2|3]?[1-9]?[\" \"]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]{0,1}[a-zA-Z]*[^p]?[\" \"]?[1|2]?[0-9]{3}[)]?#i"
if
(
preg_match
(
"#^[
\"
\"
][^p][(]?[
\"
\"
]?[1|2|3]?[1-9]?[
\"
\"
]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]
{
0,1
}
[a-zA-Z]*[^p]?[
\"
\"
]?[1|2]?[0-9]
{
3
}
[)]?#i"
,
$split1
[
$j
])){
if
(
preg_match
(
"#^[
\"
\"
|
\"
\"
][^p][(]?[
\"
\"
]?[1|2|3]?[1-9]?[
\"
\"
]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]
{
0,1
}
[a-zA-Z]*[^p]?[
\"
\"
]?[1|2]?[0-9]
{
3
}
[)]?#i"
,
$split1
[
$j
])){
$matrice
[
$ligneMatrice
][
$colonneMatrice
]
=
$split1
[
$j
];
}
//fin regex
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment