Regular search technology is used in Dreamweaver

Copy codeThe code is as follows:
<a href=(\S)+_(\S)+ 
<a href=$1-$2 
<a href=((\S)+\_)+ 
<a href=($1+\-)+ 
<a href=”(\S)+\_(\S)+” 
<a href=”(\S)*\_(\S)*” 
<a href=”(\w)+\_(\w)+” 
<a href=”(\S*)\_(\S*)” 
<a href=”$1-$2″ 

regular expression
Regular expressions are patterns that describe character combinations in text. Using them in code search helps to describe concepts such as “lines starting with ‘var’ and” attribute values containing numbers “. For more information about searching, see searching and replacing labels and attributes.

The following table lists the special characters used in regular expressions, their meanings, and usage examples. To search for text that contains a special character in the table, precede the special character with a backslash to escape it. For example, to search for the actual asterisk in the phrase “some # conditions # apply *”, your search pattern should be similar to: apply \ *. If you do not escape the asterisk, you will find all matches of “apply” (and all matches of “apple”, “applyy” and “applyyy”), not just those followed by an asterisk.

Use parentheses to separate the groups to be referenced later in the regular expression. Then use $1, $2, $3, and so on in the replace field to refer to the first, second, third, and later bracket groups.

be careful

Use \ 1, \ 2, \ 3, etc. (instead of $1, $2, $3) in the find what text box to refer to earlier bracket groupings in regular expressions.

For example, by searching for (\ D +) \ / (\ D +) \ / (\ D +) and replacing it with $2 / $1 / $3, you can swap days and months among dates separated by slashes (so you can convert between American style dates and European style dates)

Recommended Today

Hive Foundation

1、 Hive basic concepts Hive is a data warehouse tool based on Hadoop. It can map structured data files into a table and provide SQL like query functions. The essence is:Convert HQL into MapReduce program flow chart Architecture Principle Architecture diagram User interface (client):cli (hive shell), jdbc/odbc (Java access hive), webui (browser access hive) Metadata: […]