Replace characters with regular expressions in Dreamweaver

Source: Internet
Author: User

Press Ctrl + F to use a regular expression. For example

Original article

<A href = "{site_url} s/goelia % 2f % B8 % E8 % C0 % F2 % E6 % AB/" target = "_ blank"> goelia/Gloria </> </DD> <a href = "{site_url} s/% BC % be % Ba % F2 % B7 % E7/" target = "_ blank"> seasonal event </a> </DD> <a href = "{site_url} s/Mickey % 2f % C3 % D7 % C6 % E6/" target = "_ blank"> Mickey/Mickey </a> </DD> <a href = "{site_url} s/% C0 % CB % C2 % Fe % D2 % BB % C9 % ed/"target =" _ blank "> Lang Man </a> </DD> <a href =" {site_url} s/Miss + sixty/"Target = "_ blank"> Miss Sixty </a> </DD> <a href = "{site_url} s/% CF % E3 % D3 % B0/" Target = "_ blank"> Xiangying </a> </DD> <a href = "{site_url} s/jorya % 2f % D7 % BF % D1 % C5/ "Target =" _ blank "> jorya/Zhuo ya </a> </DD> <a href =" {site_url} s/ports % 2f % B1 % a6 % d7 % CB/"target =" _ blank "> ports/baozi </a> </DD> <a href =" {site_url} s/Gucci % 2f % b9 % C5 % C6 % E6/"target =" _ blank "> Gucci/Gucci </a> </DD> <a href =" {site_url} s/ jeanswest % 2f % D5 % E6 % Ce % AC % CB % B9/"target =" _ blank "> jeanswest/jevis </a> </DD>

 

I want to replace all the href attributes of a with {site_url} TS/{url_base64_encode ('duoyi')}/, because the previous parts of the href attributes in the preceding text are the same, the content behind S/is different, and it is basically a number plus a letter plus %. We use assense \ s + to match strings that do not contain blank characters. Then, "Enter in search"

{Site_url} s/\ s +/

OK, click replace all

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.