Thanks for helping again. please i have string that could come in several forms
2) “TTN000216556880035450088|TRF FROM MACK”
4) “Transfer from josh TTN000216556880035450088 to jack”
5) “TTN000216556880035450088 0098123 TRANSFER 789121”
I need a regex pattern that could get the string that starts with TTN
which is “TTN000216556880035450088” . This string is the reference and it is what i need . it can be found in any position in a sentence and sometimes the reference might not be separated from the other words by a space , sometimes a special character can be used as a separator. i…e in 2) “TTN000216556880035450088|TRF FROM MACK”
It should start with TTN, That clear, Kindly mention something like Ends with or Number of character it should have.
So that we can frame a RegEx Pattern for it.
Please try this pattern
Below is the regex for the same
Mark this as solution and like it
Er Pratik Wavhal
Thanks a lot guys, i must say i am really grateful @msan your pattern matches my requirement more its been very helpful.
Thanks too @Pratik_Wavhal i really appreciate , i really want to learn this regex , its so great. you were helpful too…
Hello @msan Thank you , please how do i write this for references starting with TTN, VNM, PSM, or SL all together. I am trying to say match if the reference starts with VNM, PSM, or SL
Use a group with a pipe like that:
Thanks a lot… really grateful
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.