Tag:brackets
-
Time:2021-2-5
Regular expression is a hurdle that every programmer can’t get around, and it’s also the art that is most easily ignored. I believe that most programmers use regular expressions in their work just like I did before. They Google them, then copy them and change them. Regular gives programmers the feeling that it is difficult […]
-
Time:2021-1-29
Title Requirements: Thinking: Bracket matching, the first thought should be the stack, because you need to count the length, so the stack is used to store subscripts There are two situations When the current character is “)”, the element at the top of the stack will pop up first Then check whether the stack is […]
-
Time:2021-1-28
import java.math.BigDecimal; import java.util.*; /** *Simple formula calculation tool, only support +, -, *, /, () * @author ningyongli * @date 2020-07-13 */ public class CalculateUtils { private static final Map<String, Integer> PRIORITY_MAP = new HashMap<>(); private static final List<String> OPERATOR_LIST = new ArrayList<>(); static { PRIORITY_MAP.put(“(“, 0); PRIORITY_MAP.put(“+”, 5); PRIORITY_MAP.put(“-“, 5); PRIORITY_MAP.put(“*”, 10); PRIORITY_MAP.put(“/”, […]
-
Time:2021-1-27
Regular matching can capture the value of the subexpression in (). The grep command in Linux can’t capture the value of the subexpression. It can only get the content of the whole regular matching package main import “regexp” import “fmt” func main() { str := `(.*?)(\d+)(.*?)\d(.*)\d` r := regexp.MustCompile(str) matchs := r.FindStringSubmatch(“tao123shi5han567”) for _, s […]
-
Time:2021-1-24
A common regularization method 1 \ :Marks the next character as a special character, an original character, a backward reference, or an octal escape character. For example, “d” matches a numeric character, not the letter D. 2 ^ : matches the start position of the input. If the multiline flag is set to true, […]
-
Time:2021-1-23
Valid parentheses When programming, a class, function and expression need bracket matching. If bracket does not match correctly, the compiler will report an error. In fact, this is the application of data structure stack Stack It’s a linear structureYou can only add elements from one end, and you can only take elements from the same […]
-
Time:2021-1-21
1.Nyan Progress Bar This is a progress bar beautification plug-in, so that you can think of and unexpected progress bar can also sprout 2.Rainbow Brackets Rainbow color bracket, can better distinguish the corresponding bracket, mother no longer worry about me after CV don’t know where less bracket. 3.translation plugin English welfare ~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!!! Don’t worry about […]
-
Time:2021-1-20
multiplication sign The use of multiply sign in latex\timesAs shown in the figure below: a\times b ###The use of identity in latex\equivAs shown in the figure below: a\equiv b Curly bracket In latex, curly brackets are used\left\{\right\}As shown in the figure below: \left\{b\right\} Mathematical symbols This work adoptsCC agreementReprint must indicate the author and the […]
-
Time:2021-1-19
An old project of the company, SQL Server In fuzzy query, the query condition contains, and then the query result is always empty If there is no character after escape character in like mode, the mode is invalid and like returns false. If the character after the escape character is not a wildcard, the escape […]
-
Time:2021-1-16
div { width: 100px; height: 100px; background-color: red; }
-
Time:2021-1-8
This book focuses on a powerful tool – “regular expressions”. It will teach readers how to use regular expressions to solve various problems, and how to make full use of tools and languages that support regular expressions. Many documents about regular expressions do not introduce the ability of this tool, and the purpose of this […]
-
Time:2021-1-7
Proficient in regular expressions: Chapter 2 This article focuses on regular expressions, just because Perl supports regular expressions better than other languages, so choose Perl. Please don’t care too much about Perl. The necessary pre knowledge will be mentioned here. Let’s start our discussionRegular tour。 In this article, we will use · Instead of the […]