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
How to read the data from MQRFH2 messages using MQ connector stage
Accessing an FTP server internally that is on a different subnet.
Need SBS 2008 R2 Premium Media
WordPress - Admin - Change Admin Page Titles
How do create a Windows batch script to start a service and set to automatic
My Computer/ Explorer Not responding Windows XP
Can't access shared folders and printers in Win 7 Pro in XP Home
Crosstab Query To Excel - Number Format
Using PHP to generate custom font text with shadow
LUN unpresented from ESX hosts causing alarms