Microsoft
Software
Hardware
Network
Question : Find position of second to last period in a string
How do I take a string and remove the part of the string before the second to last period (including that period and if it exists).
Example
"abc.efg.ggg.this.part" returns "this.part"
"this.part" returns "this.part"
"f.this.part" returns "this.part"
"f.f.f.f.this.part" returns "this.part"
Answer : Find position of second to last period in a string
var s='abc.efg.ggg.this.part';
document.write(s.split("."
).slice(-2
).join("."
));
Random Solutions
SSI EEB 3.61 case
putting a requiredfield on a combobox in asp
Vlookup with exact number format
EIGRP Stuck in Active
Recover auto save doc.
How can I group Excel radio buttons
jQuery script error in Firebug
Missing PDFMaker files - Error
WIX Installer Question
HP Insight Diagnostic Error Message Memor/Power Failure