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
Login control design and Programming
Motherboard driver CD for HCL - P5GD2-TVM/GB/SI
converting an Exchange/SQL server machine to VM using sysinternals tool
There is a problem communicating with the CRM server. The server might be unavailable. Try again later
Searching in Windows 7 Ultimate and Wind 2008 Server how do I search accurately?
Running the System Update readiness tool.
Office communicator user script
how can i translate gujarati sentence into english sentence ??
Extract date and part of the line from a log file
Intel(R) Celeron(R) D CPU 3.06GHz on a Linux machine