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
SpellNumber
URL Rewrite
Windows 7 recently used programs is blank
Select All Columns Count Column Group By Only One Column?
New mail user not showing up in GAL.
How many instances of a web application can run on a server
Terminal server 2008 R2 Pinned Taskbar Links
cisco softphone registration
Two GIG Nics in my HP workstation how do I set them up to load balance?
How to set the backcolor of the entire gridview rows quickly +vb.net 2005