Jump to content

regex expression


cloud

Recommended Posts

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

yeah bro you can try that

Link to comment
Share on other sites

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

  • VictoryTDP

    14

  • cloud

    13

  • kakatiya

    2

  • naughty15

    2

4 minutes ago, naughty15 said:

may be done most efficient way other than below, but this works

^M\d{8}$|^M\d{8}_X$

This will match on both bro, so do you want to print _X as well?

Link to comment
Share on other sites

4 minutes ago, naughty15 said:

may be done most efficient way other than below, but this works

^M\d{8}$|^M\d{8}_X$

Thanks bro , koncham modified M\d{8}$|M\d{8}_X$  , ^ tesesa . Mee case lo it picks up M12345678 and M12345678_X , kani naku M12345678_X unna M12345678 pick cheskovaali .. _X ni ignore cheyyali 

Link to comment
Share on other sites

28 minutes ago, VictoryTDP said:

sorry bro been busy with the meetings, 

(?!999)\d{3} something like this will work

NP bro . Work kaledu . 

_X daggara solution dorkatledu

M/d{8}$  works for M12345678 M12345678 but M12345678 M12345678_X work katledu 

Link to comment
Share on other sites

7 minutes ago, cloud said:

NP bro . Work kaledu . 

_X daggara solution dorkatledu

M/d{8}$  works for M12345678 M12345678 but M12345678 M12345678_X work katledu 

Yeah I know bro, let me check

Link to comment
Share on other sites

9 minutes ago, karthikn said:

M[\d]{8}(?=_X)

searches for _X but doesn't capture (positive look ahead)

Thanks bro, I was missing the positive look ahead yesterday

Link to comment
Share on other sites

Thanks bro . Both of you 

M[\d]{8}(?=_X) Enduko panicheyyatledu . I added $ at the end as i need to match last value . M12345678 M12345678 ani iste 2nd value pick laedu mari 

 

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