cloud Posted March 29, 2021 Report Posted March 29, 2021 1) need to search for a word which starts with M and has 8 digits followed . 2) need to search from last for a word which starts with M and has 8 digits followed . Anyhelp is appreciated . google lo dorkatledu Quote
VictoryTDP Posted March 29, 2021 Report Posted March 29, 2021 ^M\d{8}$ something like this 2) need to search from last for a word which starts with M and has 8 digits followed . ikkada search from the end of a line? Quote
cloud Posted March 29, 2021 Author Report Posted March 29, 2021 2 minutes ago, VictoryTDP said: ^M\d{8}$ something like this 2) need to search from last for a word which starts with M and has 8 digits followed . ikkada search from the end of a line? Thanks bro . for 2nd one , it has two works INVOICE = M32363748 M98765432 I need to pick the second one which starts with Mand followed by 8 digits . So last nunchi first work . Quote
Epic Posted March 29, 2021 Report Posted March 29, 2021 41 minutes ago, cloud said: Thanks bro . for 2nd one , it has two works INVOICE = M32363748 M98765432 I need to pick the second one which starts with Mand followed by 8 digits . So last nunchi first work . So 2nd occurrence of Pattern in a line check cheyyali myMatch.Groups[2].Value Ade if you don’t know the occurrence count and you need last occurrence aithe myMatch.Groups[myMatch.length-1].Value Quote
cloud Posted March 30, 2021 Author Report Posted March 30, 2021 16 hours ago, VictoryTDP said: ^M\d{8}$ something like this 2) need to search from last for a word which starts with M and has 8 digits followed . ikkada search from the end of a line? avnu bro . First one worked and thanks for it . 2) Last work search cheyyali , if it starts with M .. i need to take Mfollowed by 8 digits Quote
VictoryTDP Posted March 30, 2021 Report Posted March 30, 2021 44 minutes ago, cloud said: avnu bro . First one worked and thanks for it . 2) Last work search cheyyali , if it starts with M .. i need to take Mfollowed by 8 digits M\d{8}$ idi line ending lo match chesthundi bro Quote
ChinnaBhasha Posted March 30, 2021 Report Posted March 30, 2021 17 hours ago, VictoryTDP said: ^M\d{8}$ something like this 2) need to search from last for a word which starts with M and has 8 digits followed . ikkada search from the end of a line? how do people remember this stuff bro, whenever I need it, I search desperately, learn it, use it and forget after a week Quote
VictoryTDP Posted March 30, 2021 Report Posted March 30, 2021 Just now, ChinnaBhasha said: how do people remember this stuff bro, whenever I need it, I search desperately, learn it, use it and forget after a week Konni gurthu untayi, konni undavu kaka but if you use it regularly then it is easy to remember Quote
kakatiya Posted March 30, 2021 Report Posted March 30, 2021 17 hours ago, VictoryTDP said: ^M\d{8}$ something like this 2) need to search from last for a word which starts with M and has 8 digits followed . ikkada search from the end of a line? Hi..you asked me about voip jobs ?nuvvena adhi ? Quote
VictoryTDP Posted March 30, 2021 Report Posted March 30, 2021 Just now, kakatiya said: Hi..you asked me about voip jobs ?nuvvena adhi ? Yeah bro nene Quote
kakatiya Posted March 30, 2021 Report Posted March 30, 2021 11 minutes ago, VictoryTDP said: Yeah bro nene Requirement petta..one month back..I will post more Quote
VictoryTDP Posted March 30, 2021 Report Posted March 30, 2021 5 minutes ago, kakatiya said: Requirement petta..one month back..I will post more Okay bro, thank you! Quote
cloud Posted March 30, 2021 Author Report Posted March 30, 2021 1 hour ago, VictoryTDP said: M\d{8}$ idi line ending lo match chesthundi bro Bro , this may be a small thing for u but you are saving lot of time for me . Thanks a lot . M\d{8}$ working bro .. kaani requirement lo inko point undi . sometimes invoice id M123 M12345678_X ani kuda undochu . We need to ignore _X in that cases . So basically last word in string which starts with M followed by 8 digits , if it has _X at the end you need to exclude it Quote
cloud Posted March 30, 2021 Author Report Posted March 30, 2021 9 minutes ago, cloud said: Bro , this may be a small thing for u but you are saving lot of time for me . Thanks a lot . M\d{8}$ working bro .. kaani requirement lo inko point undi . sometimes invoice id M123 M12345678_X ani kuda undochu . We need to ignore _X in that cases . So basically last word in string which starts with M followed by 8 digits , if it has _X at the end you need to exclude it Or last word lo starting with M and next 8 digits teskunte saripothadi so that after that _X vachina fail kaadu .. Quote
naughty15 Posted March 30, 2021 Report Posted March 30, 2021 11 minutes ago, cloud said: Or last word lo starting with M and next 8 digits teskunte saripothadi so that after that _X vachina fail kaadu .. https://regex101.com/ test reg expressions here.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.