Regularly delete everything at the beginning of the text and ask for help!

% &% &% June 4, 2018, Monday% &% cool summer,% &% have a glass of watermelon juice to cool down% &% &% today:% &% &% 1. Football league, fourth round% &% management VS security% &% Huanhua VS graduate% &% mining VS computer% &% please pay attention to replenish water, hard work% &% &% =% &% &% 2. The main building is closed from this Saturday and Sunday, and the school has to undertake social examinations. % &% of the main building will be closed from 6pm on Friday to 1pm on Sunday. % &% &% =% &% &% 3. The official version of Black Online has carried out public testing stage% &% new functions such as course check list, score check, second-hand market, worry-relieving grocery store and other new functions% &% &% =% &% &% 4, graduating from senior year. For those who need to sell items, please go to Mini Program second-hand market module% &% &% search WeChat Mini Programs Heike Online% &% Heike Online exchange QQ group 631146131% welcome you to join% &% Heike% &% &% message:% &% weekend, life shift position, Heike Online pays attention to campus life with you, good luck to you, thank you for your company. Come on for a new day! % &%

just want to delete all the characters before 2018, and 2018 may also be Chinese characters. Hope to have the help of a great god!


string.replace(/^.*([\u4E00-\u9FA5]|\d)/,(v)=>{
    return v.charAt(v.length-1)
})

regular: match the previous garbled code.

/ ^ [^ d | ^ [u4e00-u9fa5]] /


var str = '%&% %&% %&% %&% %&%201864%&%%&%%&%%&%:%&%%&%1.4%&% VS %&% VS %&% VS %&%%&%%&%=======================%&%%&%2.%&%61%&%%&%=======================%&%%&%3.Online%&%%&%%&%=======================%&%%&%4%&%%&%Online%&%OnlineQQ631146131%&% %&%%&%%&%:%&%Online%&%%&%%&%%&%%&%%&%%&%%&%%&%';
str.replace(str.match(/(.*)(|2018)/)[1], '')
Menu