Trying to find source segments that start with "With"


#1

I can’t figure out how to write a regular expression to find source text/segment that starts with the word “With” in Xbench.

Could you tell me what the regex should look like?


#2

If you wish to find all segments starting with “With”, please use the following regular expression:

^With

In Regex, the caret symbol (^) stands for beginning of segment.


#3

If the user only wanted to find segments that begin with “with” but not that begin with “without”, the regex would be ^with>, correct. On the other end (literally) if I want to find segments that end with the word with, the user would use with$, correct? Thanks


#4

To force that the segment ends with the word “with”, you have to add the open angle bracket <with$