Skip to main content

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!!

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

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

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!!


Reply