|
|
#1 | ||
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
An introduction to regular expressions - a small advise
Hi!
I just had a look at the sticky thread mentioned in the subject and I think it should be quite useful for starters. I just like to add one small advise: Quote:
Well, you may object, in python it's different and in fact http://www.pythonregex.com/ suggests so. Nevertheless I'd strongly advise to not put the flags anywhere in the regexp, but just at the beginning. This will make things much easier and additionally, follows the python regular expression documentation which states: Quote:
Code:
test(?i) Code:
(?i)test |
||
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,353
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
If you had read just a little further down, Manichean stated at the Beginning or at the End.
Me, I do it at the beginning
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regular Expressions Help | lauralein | Library Management | 1 | 11-12-2013 08:05 PM |
| Help with regular expressions | jevonbrady | Library Management | 6 | 06-21-2011 11:16 AM |
| An introduction to regular expressions | Manichean | Conversion | 0 | 01-26-2011 06:05 PM |
| Regular expressions, Calibre and you- an introduction (Archived) | Manichean | Conversion | 80 | 11-11-2010 08:37 AM |
| Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 12:04 PM |