Jump to content
UBot Underground

Recommended Posts

Need a little regex help with look ahead (I think)

Trying to get all numbers up to an underscore "_" for ex

 

146973095502995_234698373397133

 

So hoping to get

 

146973095502995_

 

or better yet

 

146973095502995

 

AND Then would also need the regex to match all characters after the underscore "_"

 

_234698373397133

 

or better yet

 

234698373397133

 

best ive came up with is

 

^[a-zA-Z0-9_]+$ but that just gets the entire string

 

 

Thanks for reading

Link to post
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.

Loading...
×
×
  • Create New...