Python Regular Expression Summary

Source: Internet
Author: User

To determine whether it is an integer or a decimal, see a method on the Web:

1 Type (eval ("123")) = = = int2 type (eval ("123.23  ") = = Float

Later saw the "Python:eval and misuse", a test will be listed in the current directory of all files, think or use regular expressions to achieve security.

Here are a few good articles about regular expressions, which are described in detail

http://blog.csdn.net/windone0109/article/details/9094305

Http://www.runoob.com/python/python-reg-expressions.html

Https://msdn.microsoft.com/zh-cn/library/ae5bf541%28VS.80%29.aspx

Python Regular Expression Summary

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.