How to retain $ in strings

Source: Internet
Author: User
How to retain the $ str = "Baidu audio and video $1024 HD Mandarin Chinese version $ bdhd: // 1183200391 | E067EEAB1560E1FDCE2F8927625E4AEF | Iron 3. HD1024 Chinese characters in HD Mandarin. rmvb $ bdhd #1024 $ bdhd: // 1086150825 | d54a602133f6efeb6eb6ee212c618ca1 | iron Xia 3. BD1024 double-byte. rmvb $ bdhd #1280 UHD Chinese/English dual-character MKV version $ bdhd: // 2561208627 | Jun | iron Grand 3.bd1280uhd Chinese/English dual-character .mkv $ bdhd #1280 $ bdhd: // 1479559068 | AFFECBC57E728AA3D335741CB857D0C9 | iron Xia 3. BD1280 double-byte. rmvb $ bdhd $ gggvod: // xlj.2tu. cc: 8089/061 c15a782e4108f4df7ab71d316da6de969a70/1183200391/[Thunder download www.2tu. cc] Iron Man 3. HD1024 Chinese characters in HD Mandarin. rmvb $ gvod #1024 $ gvod: // xlj.2tu. cc: 8089/5 F10D84070A1D5854FA855F51D7B0AAB661FC316/1086150825/[Thunder download www.2tu. cc] Iron Man 3. BD1024 double-byte. rmvb $ gvod #1280 UHD/Chinese/English double-character MKV version $ gvod: // xlj.2tu. cc: 8089/1776 E72DB88ECAA725270302A8F508760D85EB8F/2561208627/latest $ gvod #1280 $ gvod: // xlj.2tu. cc: 8089/C91DCC7E81D9CE99C1103AFB015FB9A6D5B475A9/1479559068/[Thunder download www.2tu. cc] Iron Man 3. BD1280 double-byte. rmvb $ gvod ";

I want to keep $. Why does output disappear? what should I add?


Reply to discussion (solution)

$ Str = '$1 $2 $3 ';

Just use single quotes. strings that do not involve variables use single quotes.

Quotation marks ....

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.