Reputation: 61
Im just looking for a search term in Regular expression that will find all occurrences of measurements in a sentence?
For instance say im looking for Litres (L)?
So there is a number followed by a L or l followed by 1 or many spaces and maybe more text?
So far i have "\d+[l] +" but this doesn't capture all variances like '2L[more than one space]xxxxx'
The end goal is to correct and standardise all text, ie all L's in upper case when in a measurement!
Also i know i could easily use instr() functions but wanted to try RegEx.
Cheers
Upvotes: 1
Views: 60
Reputation: 1116
(\d+)[lL]\s+(.*)
Matches:
Ignores:
Upvotes: 1