Hello i am trying to make rule with regex so its working one problem is that when i use letter and digit without space it does not recognize in test classification. so if i write for example "text 1234" or "1234 text" its working but if i write "text1234" or "1234text" it does not work, which symbol i have to use to fix this problem? thanks
Solved! Go to Solution.
Hi @Georgiancard ,
Here you go,
[text]{4}\b - Will identify only text
\b[text]{4}\d{4}\b - Will identify text with 4 numbers - text8528
\b\d{4}[text]{4}\b - Will identify 4 numbers with text - 5565text
If you find this as a solution, kindly accept this as a solution!
Thank you.
Hi @Georgiancard ,
Thank you for writing in here.
Can you share the existing regex created for "text 1234".
Hi @Georgiancard ,
You can use regex for the below requirement:
Requirement: I need something before \b\d{4}\b to recognize text and numbers together text1234
Regex Pattern: \b[A-Za-z]{4}\d{4}\b
This matches any 4 characters and any 4 numbers together without space between them.
Thank you.
Hi @Georgiancard ,
For identifying text4563 or any textxxxx - \b[A-Za-z]{4}\d{4}\b
For identifying 3214text or any xxxxtext - \b\d{4}[A-Za-z]{4}\b
For only identifying text in text4563 - [A-Za-z]{4}\b
For only identifying text in 3214text - \b[A-Za-z]{4}
Thank you.
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA