Skip to main content
Question

Extract attribute values with specific length and structure

  • May 13, 2020
  • 2 replies
  • 69 views

Hi!

I'm trying to write a regular expression into StringSearcher so I can extract specific attributes. Those are numbers looking like this:

1234/123 or 1234/1234

I can't just use a filter with "contains /", because there are some other attribute values also with /. They have to be specifically looking like in my example (well, the numbers can be any). It's mainly the aspect and structure that has to be like this. Any help? I don't have much idea on how to write expressions...

Thanks in advance!!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • May 13, 2020

So always 4 digits followed by a slash then 3 or 4 digits?

^[0-9]{4}\/[0-9]{3,4}$

  • Author
  • 10 replies
  • May 14, 2020

So always 4 digits followed by a slash then 3 or 4 digits?

^[0-9]{4}\/[0-9]{3,4}$

Thanks  @ebygomm!!! It's exactly what I needed. Perfect! Thanks again!!