What language are you writing the regular expression in? PHP?
'Objects In Space'
Buffistechnology 3: "Press Some Buttons, See What Happens."
Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
Javascript. Using a string object.
a = s.match("\\\\(\\\\d+\\\\)")
Where a is either null or an array containing the result.
Thanks!
Any way to do this without returning the parenthesis?
I think "\\\\((\\\\d+)\\\\)" will work.
Almost. I get something like (2104),2104
That is the way that the match function works. Just pop the value off of the array that it returns.
OK, I see that now.
Cool! Thanks!
eta: I was doing an alert on the result. Didn't realize you could alert an array!
vwbug, turning off trackbacks and pingbacks only applies the setting to new posts/pages - to turn them off on old posts:
- Go to the list of posts and tick the tickybox in the bar at the top of the list to select all the posts on the page.
- Look for "Edit" in the "Bulk Actions" dropdown, and click "Apply".
- Look for "Pings: Allow/Do Not Allow."
You'll have to do this once per page of posts, but it sure beats going into each one by hand.
Also, pingbacks suck.
Wordpress/Blogger question:
For some reason, if you add my Wordpress link to a blogroll on Blogger, it shows that my last post was 10 months ago. I don't think that was the last post I imported in my initial switchover, so I can't figure out why it's not updating.
I initially thought it might be a caching issue on the other person's site, but I just added the link to my old blog at Blogger and it's doing the same thing.
Ideas?