문제


I have write some regexp for this but i don't get exact one.
please check this link.
In this i want differentiate Location field into three parts.

Ref Link: https://avayacorp.authoria.net/joblist.html

  1. country
  2. State
  3. City

Please give more suggestions in this.

도움이 되었습니까?

해결책

I assume that you try to differentiate location field right from html code.

Try this regex

">([^-/]+)-([^-]+)-([^-/]+)<

Description

Regular expression visualization

Demo

here

다른 팁

Consider the following Regex...

(?<=-?)\w+(?=-?)

Good Luck!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top