Need Regex in these String

Hi in these String "Manage UPI ID\r\nAccount No.\r\n000401203123\r\nI\r\nV 000401203123\r\n000401203120\r\nRegistered UPI ID\r\n5583037894@icici\r\n\./\r\nINDefault a/c to send payments\r\nINDefault a/c "

I need “5583037894@icici” these value please send me the Regex

Note:Don’t send the screenshot Please send Regex

thankyou

Hi @Saikrishna_Mada ,

You had asked this in the comments of your previous post:

Regards,

Hi @Saikrishna_Mada ,

Check this below code,
inputStr = "Manage UPI ID\r\nAccount No.\r\n000401203123\r\nI\r\nV 000401203123\r\n000401203120\r\nRegistered UPI ID\r\n5583037894@icici\r\n\./\r\nINDefault a/c to send payments\r\nINDefault a/c"

extractedVal(String as type) = System.Text.RegularExpressions.Regex.Match(inputStr,"[0-9]+@[a-z]+", System.Text.RegularExpressions.RegexOptions.Multiline).Value

Hope this helps you :slight_smile:

Hi @Saikrishna_Mada

Try this Regex code : [0-9]+@[a-z]+ It will work.

Regards,
Kaviyarasu N

Sure, here’s a regex that should match “5583037894@icici” in the given string:

\d{10}@\w+

Explanation:

  • \d{10} matches 10 digits (in this case, “5583037894”)
  • @ matches the “@” symbol
  • \w+ matches one or more word characters (letters, digits, or underscore), which should match “icici” in this case.
1 Like

Hi Vishal,

“Debit Card DetailsYour ICICI Bank Debit Card has a grid on its backside. Enter the numbers from this grid belowB C HXXVerify Card Details•04” in these string i need B C H values
can you provide the regex of these string.THAT THTREE VALUES CHANGES DYNAMICALLY

needed output -B C H