codeapp icon indicating copy to clipboard operation
codeapp copied to clipboard

positive look behind regex doesn’t work

Open oscampo opened this issue 3 years ago • 4 comments

Trying to use this simple regex:

(?=\$)\d+

to extract numeric value of a price from this text:

Model : QAZ-243
Price: $50
Color: Blue 32
Size: 17

but it doesn’t works

oscampo avatar Mar 24 '23 13:03 oscampo

Which programming language are you referring to?

bummoblizard avatar Mar 24 '23 13:03 bummoblizard

It´s only a simple regex search on a txt

oscampo avatar Mar 24 '23 17:03 oscampo

I see. Lookbehind isn't supported until iOS 16.4. Please consider updating your device.

bummoblizard avatar Mar 25 '23 00:03 bummoblizard

Perfect! I just updated my iPad to a beta version of iOS 16.4 and regex search work like a charm. Thanks!

oscampo avatar Mar 25 '23 08:03 oscampo