• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Automate build numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automate build numbers


  • Subject: Re: Automate build numbers
  • From: Johan Kool <email@hidden>
  • Date: Fri, 1 Sep 2006 18:56:22 +0200

To get rid of the M, make the following change.

From this:

# ugly yet functional (barely) regex by Daniel Jalkut:
#$version =~ s/([\d]*:)(\d+[M|S]*).*/$2/;

# better yet still functional regex via Kevin "Regex Nerd" Ballard
($version =~ m/\d+[MS]*$/) && ($version = $&);

to this:

# ugly yet functional (barely) regex by Daniel Jalkut:
$version =~ s/([\d]*:)(\d)+[M|S]*.*/$2/;

# better yet still functional regex via Kevin "Regex Nerd" Ballard
#($version =~ m/\d+[MS]*$/) && ($version = $&);

Note the change in location of "#" and ")"!

Johan

---
  http://www.johankool.nl/



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Multithreaded app runs, but not in dubeugger
  • Next by Date: Using #define's in .m files
  • Previous by thread: Re: Multithreaded app runs, but not in dubeugger
  • Next by thread: Using #define's in .m files
  • Index(es):
    • Date
    • Thread