I'm trying to match a pattern:
show_clipping.php?CLIP_id=*
from:
a href="javascript:void(0);" onclick="MM_openBrWindow('show_clipping.php?CLIP_id=575','news','scrollbars=yes,resizable=yes,width=500,height=400,left=100,top=60')">some text</a>
where
*
can be only numeric values(eg: 0, 1 , 1234)
the result has to return the whole thing(show_clipping.php?CLIP_id=575
)
what I've tried:
show_clipping.php\?CLIP_id=([1-9]|[1-9][0-9]|[1-9][0-9][0-9])
but my attempt would truncate the rest of the digits from 575, leaving the results like:
show_clipping.php?CLIP_id=5
- How do I match numeric part properly?
- Another issue is that the value 575 can contain any numeric value, my regex will not work after 3 digits, how do i make it work with infinit amount of digits