Jump to content

Recommended Posts

I have variables that all start with a number followed by a period and then a space and a team name.

 

I need to grab just the number at the beginning but can't figure out the method to do it with all the available functions.

 

For instance:

 

1. UConn

5. Purdue

12. Cleveland St.

 

I need it to be able to handle single digit numbers as well as double digits. I know this is simple to some of you guys that know php well but I have spent almost an hour at this junction and am forced to ask.  :-[

Sure.  Regex is your best bet hear cause if you tried to explode on ". " (dot space) there could be a team with that in their name.

 

Please mark as [sOLVED] too, thanks.

 

You mean like 1. N. Carolina?  :)

 

You think further ahead than I.

 

Topic Solved.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.