Forum Discussion

julienvdc's avatar
julienvdc
Helper III
3 years ago
Solved

Using Power Query to extract the first occurring number from a string (URL)

I have a coumn with URLs from which I would like to extract the first occuring number. My constraints: the numbers don't occurre at the same position there might be some numbers further in the str...
  • Ahmedx's avatar
    3 years ago

     

    Text.Combine(List.FirstN(
    List.Select(
        Text.Split(Text.Select(
            [Column1],{"0".."9","/"}),"/"),(x)=>x<>""),1))