$str = "This string has a number +15 init "; regex : m/.*([\+|-](\d+)).*$/ #which works well for above said string #### $str = "This string has a number15 init"; #i need to fix the above regex to work for avove string as well