Sponsored Content
Full Discussion: Regexp_instr
Top Forums Programming Regexp_instr Post 302256988 by otheus on Tuesday 11th of November 2008 04:08:00 AM
Old 11-11-2008
I don't see how it's the A{0,1} causing the problem. A? is equivalent to A{0,1}. Can you provide us a sample input?

PS: I tried this with grep -E on Linux and it worked fine on the following strings:

Code:
AskjYj|AaaA023923-232
Akjsd402
As9
Ax.44-42


Last edited by otheus; 11-11-2008 at 05:15 AM..
 
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy