두 문자열을 비교했습니다. str1이 str2의 80 %와 일치하면 true를 반환해야합니다. 그렇지 않으면 false를 반환해야합니다. 솔루션을 찾으십시오. 감사합니다,Jquery/JavaScript String Match
1
A
답변
0
당신은 예를주십시오 거의
+0
에 도움이 될 수 있습니다.하지만 자바 스크립트가 가능합니까? –
+0
예, http://phpjs.org/functions/similar_text:902 링크입니다. 백분율을 나타내지는 않지만 문자열 길이로 계산할 수 있습니다. –
관련 문제
- 1. String Match 구현 방법
- 2. 지도 작성 [String, String]
- 3. 애쉬 MATCH 연산자 (= ~)
- 4. Excel VBA Regex Match Position
- 5. Regex Match requires @ and
- 6. mysql : exact match?
- 7. .Net Regex Match Problem
- 8. countifs/match issue를 능가합니다.
- 9. jquery multi match
- 10. define-match-expander
- 11. javascript match 텍스트를 대체하십시오
- 12. = 다차원 범위에 해당하는 MATCH()
- 13. .htaccess Regex HEX match
- 14. C - match 그룹의 Regexp
- 15. Jquery Match() IP 주소?
- 16. lucene index match
- 17. match-lambda와의 패턴 매칭
- 18. Regex to match
- 19. Reorder Regex Match Groups
- 20. 달 찾기 preg-match
- 21. Javascript : Array exact match
- 22. Preg match full stop
- 23. XSL xsl : template match = "/"
- 24. 유형 Miss-Match Java
- 25. PowerShell을 -match 문자열
- 26. 라켓 "match"구문 - 매크로입니까?
- 27. django no reverse match
- 28. Regex URL Match
- 29. .match 특정 패턴
- 30. Preg Match Spaces & New Lines?
PHP's equivalent similar_text()처럼 동작
similar_text()
를 사용할 수 있습니다. 그렇지 않다면이 질문은 매우 빨리 닫힐 것입니다 – mplungjan[다른 사람과의 유사성을 위해 문자열 DNA를 결정하는 방법] (http://stackoverflow.com/questions/797688/how-to-determine-a-strings- dna-for-likeness-to-another) – Joseph
80 % 일치는 무엇을 의미합니까? 이 문제는 80 % 일치가 무엇인지 또는 우리가 80 % 일치의 자체 정의를 구성하기를 원하는지와 같은 일종의 정의 없이는 해결할 수 없습니다. – jfriend00