View Single Post
Old 09-11-2013, 07:56 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I guess you'd have to create a group in the regex you can then refer to with \1:

Code:
[/]\s([a-z])
The parentheses mean that whatever is found inside will be equivalent to \1 (or \2, \3, etc if you have more groups).

The exact syntax may vary between different regex dialects. In vim, for instance, you'd have to escape the parentheses: [/]\s\([a-z]\) Check whatever editor you are using.
Jellby is offline   Reply With Quote