Tutorial Details
- Topic: Regular Expressions
- Format: 18 Minute Screencast
- Online RegEx Tester: RegExr
Download Source Files
Today, we’ll be reviewing the intricacies of regular expressions. More specifically, we’ll discuss both how and why you should use positive/negative lookahead ands lookbehinds in your regular expressions. Originally meant to be a quick tip, this screencast ended up a bit longer than expected, at around eighteen minutes.
Subscribe to our YouTube page to watch all of the video tutorials!
After viewing the video above, keep in mind that, for any given task, there are a plethora of ways to match your desired text. For example, when matching a Twitter username – as we did in the video – you could also use a non-word-boundary, rather than a positive lookbehind.
\B@\S+\b // matches any Twitter username, like "@nettuts"
The key is to find the right tool for the job.
- John
- http://laroouse.com esranull
- http://www.damnseimicolon.com Skye
- Christian
- http://www.antonagestam.se/ Anton Agestam
- http://www.tutorialepc.info tutoriale pc
- http://www.codemountain.us tashicoder
- rsludge
- Brad
- http://bradbenvenuti.com Brad Benvenuti
- http://www.a1media.ca Douglas Helmer
- Proof
- http://kolombiken.com Ida
- http://vortrieb.net/ Nils
- http://www.wsiwebefectivo.com diseño web guadalajara
- mailmehe
