---
title: "How to write regular expression for \"xyz xyx 15 16 b b a \"?"  
description: "How to write regular expression for \"xyz xyx 15 16 b b a \"?"  
author: "Anonymous User"  
published: 2014-09-20  
updated: 2014-09-20  
canonical: https://www.mindstick.com/forum/2261/how-to-write-regular-expression-for-xyz-xyx-15-16-b-b-a  
category: "c#"  
tags: [".net", "c#"]  
reading_time: 1 minute  

---

# How to write regular expression for "xyz xyx 15 16 b b a "?

How to [redirect](https://www.mindstick.com/forum/2005/radio-button-redirect) [regular expression](https://www.mindstick.com/articles/11909/java-regex-or-regular-expression-in-java) for “xyz xyx 15 16 b b a”?

In above

xyz xyx is fixed [keyword](https://www.mindstick.com/forum/33572/sql-inner-join-keyword)

12 is first number that could be anything.

13 is also any number that may change

a b c may also change

I have only to [check](https://yourviews.mindstick.com/story/2248/never-forget-to-check-these-specifications-before-buying-a-mobile-phone) this [string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp) start with "abc xyz" and after that two [integer](https://answers.mindstick.com/qa/113667/write-code-for-roman-to-integer) [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) available. i am using [c#.net](https://www.mindstick.com/forum/150/how-to-check-a-uploaded-file-type-using-asp-dot-net-with-c-sharp-dot-net) for this coding.

It’s difficult please help me.

## Replies

### Reply by Anchal Kesharwani

hi Goti Bandhu,\
I hope that this [expression](https://www.mindstick.com/articles/1861/sqlite-expressions) useful for you.\

I am assuming that - space could be one or more - 15 is the first number that could be anything means fixed length of 2 digits - 16 is also number that may change means the same as above I guess - a b c also may change means character length is one with one or more space

/^xyz\s+xyx\s+\d{2}\s+\d{2}\s+[a-z]\s+[a-z]\s+[a-z]/

\
\


---

Original Source: https://www.mindstick.com/forum/2261/how-to-write-regular-expression-for-xyz-xyx-15-16-b-b-a

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
