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
Xquery assign datetime variable
Can't connect to local MySQL server through socket
I have an Exchange 2003 on a SBS2003 and I need it to handle 2 or more email domains
Error message when replying, sending, openning email in OWA
How do I unlock an Imation flash drive
AD Scripts and Windows 7
Intel Core 2 Quad CPU Overheating Issues
SAS 9.1 - Excel Import
return multiple resultsets with TsqlQuery
Delete temporary internet files?