manysource

  • 홈
  • 태그
  • 방명록

php 41

PHP의 preg_replace와 동등한 JavaScript

PHP의 preg_replace와 동등한 JavaScript 간단한 regex를 사용하여 브레이크 태그를 줄 바꿈: br_regex = / /; input_content = input_content.replace(br_regex, "\n"); 이것은 브레이크 태그의 첫 번째 인스턴스만 대체하지만 모두 교체해야 합니다. preg_match_all()PHP로 처리됩니다만, JavaScript에 대응하는 것을 알고 싶습니다.글로벌 플래그를 사용합니다.g: foo.replace(/ /g,"\n") 비 Regexp 글로벌 치환의 JS 관용어: input_content.split(' ').join('\n') 언급URL : https://stackoverflow.com/questions/407256/javascrip..

source 2022.10.14
이전
1 2 3 4 5
다음
더보기
프로필사진

각종 프로그래밍 정보를 다루는 블로그입니다.

  • 분류 전체보기 (959)
    • source (959)

Tag

ajax, php, jQuery, mariadb, MySQL, Wordpress, C, Git, Oracle, MongoDB, JSON, spring-boot, JavaScript, Java, Excel, reactjs, css, Python, sql-server, angularJS,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/10   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바