javascript - After some specified character extracting the value -


मेरे पास एक जावास्क्रिप्ट चर हो सकता है

  'आइस क्रीम *** *** * फ़्रॉस्टी '; आइस क्रीम *** शंकु  

मुझे अंतिम संस्कार के बाद * **

पहले मामले में मुझे फ्रॉस्टी

और दूसरे मामले में, मुझे कोन /

बस substr () और lastIndexOf () का उपयोग करें विधि

नमूना

  फ़ंक्शन निकालेंसभी कुछ बाद (मान, सेपरेटर) {return value.substr (value.lastIndexOf (सेपरेटर) + seperator.length)} अलर्ट (निकालेंसभी कुछ (बाद 'आइसक्रीम *** शंकु *** ठंढा', '***')); सचेत (निकालेंसभी कुछ ('आइसक्रीम *** शंकु', '***'));             

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -