Python

1. os.system
system(command) -> exit_status
Execute the command (a string) in a subshell.

>>&g ...

JavaScript

サンプルコード
function cftFmt(str){
var newStr = “”;
var count = 0;

if(str.indexOf(“.&# ...

JavaScript

サンプルコード
var url = window.location.href;

//拡張子付き
var fileName1 = url.match(“.+/(.+?)(.*)?$”) ...

JavaScript

正規表現式
/^(\d{1,2}|1\d\d|2\d|25)\.(\d{1,2}|1\d\d|2\d|25)\.(\d{1,2}|1\d\d|2\d|25)\.(\d{1,2}|1\d\d|2\d|25)$/
使用例 ...

JavaScript

JavaScriptコード

function checkURL(str){
if (str.match(/(http?|ftp):\/\/+?\..+\w$/i) == null) {
return fal ...

C++

サンプルコード
public static string StripHTMLTag(string strHtml)
{
string strOutMd=strHtml;
Regex regex = ne ...

C++

C#コード
public static string HtmlToTextFunc(string htmlStr)
{
if (String.IsNullOrEmpty(htmlStr))
{

Java

サンプルコード
import java.util.Calendar;

public class CalendaraddDemo {

public static void main(String[] ar ...

Java

Javaコード

package Properties;

import java.util.Properties;

public class ProplistDemo {

public s ...

Java

Javaコード
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException; ...

Java

javaコード
package itstudy;

import java.util.Properties;

public class PropertiesDemo {

public stat ...

Oracle

1.DBの文字コード確認
SELECT
PARAMETER,
VALUE
FROM
NLS_DATABASE_PARAMETERS
WHERE
PARAMETER IN ( ...

Java

ceiling(E e)
このセット内で、指定された要素と等しいかそれよりも大きい要素のなかで最小のものを返します。

Javaコード
import java.util.TreeSet;
public ...

Java

Javaコード
import java.util.Map;

public class EnvInfoDemo {

public static void main(String[] args) {

Java

Javaコード
import java.util.EnumMap;
public class EnumMapDemoCase {
//create an enum
public enum CityNam ...

C++

方法1
#include<iostream>
using namespace std;
int fac(int n)
{
static int f=1;
f=f*n; ...

DataBase

方法1
func IsExists(path string) (bool, error) {
_, err := os.Stat(path)
if err == nil {
return true, n ...

C++

サンプルコード
#include <iostream>
#include <cmath>
#define MAX 100
using namespace std;

i ...