I am using EditPad, but generally Perl regular expression work for it. I am trying to find only the first occurrence of a pattern per line in editpad.
Ex: Searching for number 1 in 947319949194 I only want the first 1 found, not the second.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe (in Perl) the first occurrence of
1per line should be found by regex/^[^1\n\r]*(1)/m