Sign in to follow this  
Followers 0
Sturmi

StringRegEx Help

3 posts in this topic

Hey this is not the function itself but more the AutoIt Expression for it..

 

I need this for multiple programs. Output looks like this:

 

"X"

"X_1"

"X_2"

"X_3"

and so on

When I tried with some RegEx Tools I only found X alone or X and _1 ... Can someone help me with this expression ? thanks 

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

"X(?:[_][0-9])?"
Or
"X(?:[_][0-9]+)?"

 

Edited by genius257
1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok thanks for quick help. I will try to figure out myself in future. bit confusing at beginning

 

^_^

Edited by Sturmi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0