in reply to regex and database fields
To capture whatever comes after an asterisk:
/[*](.*)/To capture whatever comes after the last asterisk in the field:
/[*]([^*]*)$/There is no field termination character, or if there is in the implementation, it is hidden from you and you should not worry about it. To make sure your expression matches at the end of the field, just use the $ positional anchor (or \z).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex and database fields
by frasco (Beadle) on Jun 10, 2008 at 15:45 UTC |