Jump to content
MakeWebGames

Regex Help


KyleMassacre

Recommended Posts

I am aweful at using RegEx and I just wanted to know if there was an easy way to check for a group of floats separated by a comma. Here are some things that I want to check for (basically looking for Vector3 positioning):

0.10, .10, -2.4 return true

0.10, +.10,-2.4 return true

1.0,-2.1 1.900 return false, no comma

Basically a set of (3) floats with no preceding comma or trailing comma and no definite length of the fraction values and the whole number can be either 0, blank, negative, or whole and it can accept positive or negative signs.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...