Reply to comment

Regex tips

Just two quick tips when dealing with regular expression

1. Regex coach, an interactive regular expressions testbed program from http://weitz.de/regex-coach/

2. To match the rpm file name, for example: gcc-5.0.1-99-102.i386.rpm
       ([^\d]+)-(\d.\d.\d)-(\d\d)-(\d+).(\w+).rpm

Reply

  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post PHP code. You should include <?php ?> tags.

More information about formatting options