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
Cant install fonts on a Mac
How to build a cloud
Remove row if column B and C are empty
Save only sends e-mail with removed attachment again
kaspersky 2010 Anti Virus Outlook 2007 html image viewing
How do I configure OWA internal/external URL's?
Recover Exchange 2003 from log files
what port is currently being used
VPN disconnects over 2 way satellite
Backup Exec 2010 running missed backup to tape job ?