c# - Regex match alphanumeric in any part of query -


can me creating regex function following ? problem numbers/alphanumeric may come in part of query well.

string = 1942 ng12 bagel cream; output = 1942 ng12 

this should work you, may multiple answers.

([^ ]*[0-9]+[^ ]*) 

it work things this:

string = 1942 bagel ng12 cream output = 1942 ng12 

Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -