小编Ger*_*hof的帖子

PHP preg_match汽车牌照

所以我前几天刚学会了PHP中的preg_match,现在我正在尝试preg_match一个车牌.它应该检查:

9a-4e-yy,所以a -和之前和之后的数字或字母,然后-再一次和更多的数字或字母.但它必须是彼此相邻的2个数字或字母,而不是更多.

现在我有这个代码:

return preg_match("/^([0-9])"."([0-9])"."(\-([0-9])"."([0-9]))"."(\-([0-9])"."([0-9]))$/", $kenteken );
Run Code Online (Sandbox Code Playgroud)

但这只会检查数字.

我希望你们也可以帮助我让它与字母一起工作.

提前致谢!

php preg-match

3
推荐指数
1
解决办法
1642
查看次数

将PostCSS转换为“普通” CSS

我有一段用PostCSS设置样式的代码。现在,我想在不使用PostCSS插件的情况下在“普通” CSS中实现相同的效果。这可能吗?如果可以,怎么办?

这听起来像是一个愚蠢的问题,但是我是HTML / CSS的新手

代码在Codepen上:https ://codepen.io/MightyFool/pen/jLKVqQ

这是HTML:

<p>
  "Attractive things make people </a> <a class="link-1" href="#">feel good</a>, which in turn makes them think more</a> <a class="link-1" href="#">Creatively</a>. How does that make something easier to use? Simple, by making it easier for <a class="link-2">people</a> to find solutions to the problems they encounter." <strong>- Don Norman</strong>
</p>\
Run Code Online (Sandbox Code Playgroud)

这是PostCSS CSS:

@use postcss-simple-vars;
@use postcss-nested;
@import 'https://fonts.googleapis.com/css?family=Open+Sans';

$underlineColor: #00458D;
$underlineHeight: 1px;

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Open Sans', …
Run Code Online (Sandbox Code Playgroud)

css postcss

1
推荐指数
1
解决办法
1738
查看次数

SQL INSERT INTO不起作用

我对这段代码感到不满:

<html>
<head>
  <title>Westpop</title>
  <link rel="stylesheet" href="opmaak.css">
</head>
<body>
<div id="header"><a href="Index.php"></a></div>

<div id="content">
<table cellpadding="5" align="center">
<th colspan="2" align="left">Registeren:</th>
<form name="registreren"  method="post" action="registratie.php">
<tr>
    <td>Email</td>
    <td><input type="text" size="50" placeholder="email@email.com" name="email"></td>
</tr>
<tr>
    <td>Voornaam</td>
    <td><input type="text" size="50" placeholder="" name="voornaam" ></td>
</tr>
<tr>
    <td>Achternaam</td>
    <td><input type="text" size="50" placeholder="" name="achternaam"></td>
</tr>
<tr>
    <td>Geboorte Datum</td>
    <td><input type="text" size="50" placeholder="dd-mm-jjjj" name="geboortedatum"></td>
</tr>
<tr>
    <td>Geslacht</td>
    <td>M<input type="radio" size="50" value="m" name="geslacht">
    V<input type="radio" size="50" value="v" name="geslacht"></td>

</tr>
<tr>
    <td>Wachtwoord</td>
    <td><input type="password" size="50" placeholder="min. 6 tekens" name="wachtwoord"></td> …
Run Code Online (Sandbox Code Playgroud)

html php mysql sql forms

0
推荐指数
1
解决办法
4067
查看次数

PHP preg_match国家又名字母和空格

我正在寻找一种方便的方法来检查PHP中的preg_match字母和空格.

所以你只能添加'荷兰'或'丹麦'

提前致谢!

php preg-match

0
推荐指数
1
解决办法
6609
查看次数

标签 统计

php ×3

preg-match ×2

css ×1

forms ×1

html ×1

mysql ×1

postcss ×1

sql ×1