FAQ (Frequently Asked Questions)
Content
Please look at the page links.
With "(?s)" at the beginning of the regular expression.
Provided you put "(?s)" at the beginning of your regular expression,
because you want to search over more than one line. (Otherwise the search will
go over one line only.) With "(?s)" at the beginning the point "." includes a line break.
You are using "<td>.+</td>" as regular expression to find the
text of a cell of a table.
".+" finds any signs occurring one or more times
(numbers, characters, spaces, tabs, line breaks,...)
The search expression
does not find the text of one cell between
"<td>" and "</td>". Instead it finds more. It finds text down to
the last occurrance of "</td>". This behaviour is called greedy. Hmm, what can you do?
Use "<td>.+?</td>" instead. Watch the additional "?". This behaviour is called reluctant.
- The point "." finds any sign, number, tabs, spaces, characters,...
- ".+" finds any sign occuring at least one ore more times.
- ".*" finds any sign that does not occur at all or one ore more times.
Siehe How do I find the first or last occurrence of a search expression?.
Use "(?i)" at the beginning of the regular expression.
|