abelabbesnabi
abelabbesnabi

Reputation: 1817

I need the regular expression for this string

Can anyone please help me get the regex for this expression:

version="X1" android-versionCode="Y1" ios-CFBundleVersion="Z1"

Where X1, Y1, and Z1 could be anything, such as series of numbers and periods, in fact it shouldn't matter.

All I care about is finding the whole string, I don't care about the values of X1, Y1 and Z1

I need this so I can do a replace using the regex to something like this: version="X2" android-versionCode="Y2" ios-CFBundleVersion="Z2"

Upvotes: 1

Views: 104

Answers (1)

phatfingers
phatfingers

Reputation: 10250

Just accept anything that is not a quote.

version="([^"]*)" android-versionCode="([^"]*)" ios-CFBundleVersion="([^"]*)"

Upvotes: 1

Related Questions