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
Terminal Services lock down question
How do web hosting providers keep public ip addresses live when one ISP fails
In Sent Items, how can I tell if a message was sent with Read Receipt Requested
Parse autosys jil file using Unix tools
Script to enable folder auditing
Validation of viewstate MAC failed? How I fix it?
Trigger destroys previous trigger
Repair of Win XP
vinegar and bugs
Shares unavailable