If the the output should be aasija for the test input as abhishek.asija, what should be the replacement pattern for below regexpattern: ^((?i)[a-z])((?i)[a-z]+)\.((?i)[a-z]+)$

Abhishek Asija 0 Reputation points
2024-09-16T14:48:23.54+00:00

If the output should be "aasija" for "abhishek.asija" as test input, the Regex pattern is defined as:

^((?i)[a-z])((?i)[a-z]+).((?i)[a-z]+)$

The breakdown of this pattern is:

  1. ^((?i)[a-z]): Captures the first letter of the first part of the input.
  2. ((?i)[a-z]+): Captures the remaining letters of the first part of the input.
  3. \.: Matches the literal dot separating the two parts.
  4. ((?i)[a-z]+)$: Captures the letters of the second part of the input.

what should be the replacement pattern so that required groups are sent out as output

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,815 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.