Home  >  Article  >  Web Front-end  >  Implementation code for searching substrings under javascript (script home revised version)_javascript skills

Implementation code for searching substrings under javascript (script home revised version)_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:39:25874browse

For example, there is such a string123xtxtxt3211221yes, I want to find out the alt values, as well as values ​​in non-labels. In this example, the result is 123xtxtxt3211221yes. Another point is that the original string is uncertain and is input by the user


[Ctrl A Select All Note: If you need to introduce external Js, you need to refresh to execute
]
Original author swust_wu
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn