יום שני, 16 במרץ 2015

Regex - ביטויים רגולים

  1. find the word Hello                                                       "\bHello\b"
  2. fint phone number XXX-XXXX                                    "\d\d\d-\d\d\d\d"
  3. fint phone number XXX-XXXX                                    "\d{3}-\d{4}"
  4. find Word yhat start with A                                           "\ba\w*\b"
  5. find digits                                                                       "\d+"
  6. find word with fix length (6)                                         "\b\w{6}\b"
  7. find spaces                                                                    "\s"
  8. start with                                                                       "^The start"  
  9. ends with                                                                      "The End$"
  10.   

אין תגובות:

הוסף רשומת תגובה