"http://blog/fr/postname".match(/^http:\/\/blog\/(..)/);
//result
[
0: "http://blog/fr",
1: "fr",
...
]
.page-header{
margin-top: -1px;
padding-top: 1px;
// или
overflow: hidden;
}
Route::get('/products/{categories?}', function($categories = null){
return explode('/', $categories);
})->where('categories', '.*');
["odezhda","kurtki","zimnie","detskie"]
foreach($array as $key => $value){
$string = str_replace($key, $value, $string);
}
<a routerLink="/user/bob" routerLinkActive #rla="routerLinkActive" [ngClass]="rla.isActive ? 'classIfActive' : 'classIfNotActive'>
</a>