我正在尝试使用linux在postgresql中创建数据库。
我用以下方式连接到postgres
sudo -u postgres psql postgres
postgres=# then i tried **CREATE DATABASE demo** or **createdb demo**
Run Code Online (Sandbox Code Playgroud)
但是当我用\ l命令检查时它们都不起作用。
有什么帮助吗?
在Javascript中我想用"T"替换"t",但仅当"t"之后的字符由"a","o","u"继续时.例如:字符串:tatotu,目标字符串:TaToTu我找不到正则表达式.
$(document).ready(function(){
$("#ta_1").keyup(function(event) {
var text = $(this).val();
text = text.replace("t, (\\a|\\o|\\u)","T");
$("#ta_1").val(text);
});Run Code Online (Sandbox Code Playgroud)
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
<textarea id="ta_1" rows="5" cols="28" ></textarea>
</body>
</html>Run Code Online (Sandbox Code Playgroud)