Jump to content

Recommended Posts

Posted

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 

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

  • VictoryTDP

    14

  • cloud

    13

  • kakatiya

    2

  • naughty15

    2

Posted

^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?

Posted
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 . 

Posted
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

Posted
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

Posted
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

Posted
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

Posted
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

Posted
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 ?

Posted
Just now, kakatiya said:

Hi..you asked me about voip jobs ?nuvvena adhi ?

Yeah bro nene

Posted
11 minutes ago, VictoryTDP said:

Yeah bro nene

Requirement petta..one month back..I will post more

Posted
5 minutes ago, kakatiya said:

Requirement petta..one month back..I will post more

Okay bro, thank you!

Posted
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 

 

Posted
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 .. 

Posted
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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...