1

I am making a web crawler which fetch data from different sites. And for this purpose I use regular expression, it is to much lengthy to write regular expression for each site separately. I want to combine those regular expression and want to work on them.how should i combine them. Please tell me how I'll combine below regular expressions. Example:

Job Title = @"<h2>(.*?)</h2>"

Job Title:</td>.*?<td.*?>(.*?)</td>

Title/Post(.*?)<span.*?>(.*?)</span>

Job Title:</strong>.*?<td.*?>(.*?)</td> 
user2316116
  • 6,726
  • 1
  • 21
  • 35

1 Answers1

0

You can use OR-operator |

(pattern1)|(pattern2)|(...)
user2316116
  • 6,726
  • 1
  • 21
  • 35