Skip to content

Instantly share code, notes, and snippets.

View Direct-A's full-sized avatar
👔
Working

Yishai Song Direct-A

👔
Working
View GitHub Profile
@Direct-A
Direct-A / regex
Created April 2, 2022 15:36
常用正则匹配
匹配中文 [\u4e00-\u9fa5]
英文字母 [a-zA-Z]
数字 [0-9]
匹配中文,英文字母和数字及下划线: ^[\u4e00-\u9fa5_a-zA-Z0-9]+$
同时判断输入长度 [\u4e00-\u9fa5_a-zA-Z0-9_]{4,10}
不能以_开头 (?!_)
不能以_结尾 (?!.*?_$)
至少一个汉字、数字、字母、下划线 [a-zA-Z0-9_\u4e00-\u9fa5]+
与字符串结束的地方匹配 $
只含有汉字、数字、字母、下划线,下划线位置不限 ^[a-zA-Z0-9_\u4e00-\u9fa5]+$
# This file contains a list of potential contaminants which are
# frequently found in high throughput sequencing reactions. These
# are mostly sequences of adapters / primers used in the various
# sequencing chemistries.
#
# Please DO NOT rely on these sequences to design your own oligos, some
# of them are truncated at ambiguous positions, and none of them are
# definitive sequences from the manufacturers so don't blame us if you
# try to use them and they don't work.
#
@Direct-A
Direct-A / WindowDos批处理指导
Created June 17, 2019 06:41 — forked from deneschen/WindowDos批处理指导
WindowDos批处理指导
Windows批处理(cmd/bat)常用命令小结
前言
批处理文件(batch file)包含一系列 DOS命令,通常用于自动执行重复性任务。用户只需双击批处理文件便可执行任务,而无需重复输入相同指令。
编写批处理文件非常简单,但难点在于确保一切按顺序执行。编写严谨的批处理文件可以极大程度地节省时间,在应对重复性工作时尤其有效。
在Windows中善用批处理可以简化很多重复工作
阅读原文 - https://wsgzao.github.io/post/windows-batch/