Jump to content

regex expression


cloud

Recommended Posts

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 

Link to comment
Share on other sites

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

  • VictoryTDP

    14

  • cloud

    13

  • kakatiya

    2

  • karthikn

    2

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 . 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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