Use regular to realize the text with 3 periods and then change the line, how to achieve this?

var articleContent = data.content.replace (/ (? = (). {2}) + $) / g,"< br/ >")
what I wrote is wrong, is there a god!

May.22,2021

Why do you use positive assertions here? Direct data.content.replace (/ [.] {3} / g,'$& < br/ >') No?


let text = ''
let res = text.replace(/(.+?{3})/, '$1\n')
console.log(res)

Preview address: https://regex101.com/r/aChFCH/2

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35a92-2bfbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35a92-2bfbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?