A
A
Alexander Savenko2016-04-04 00:51:29
Regular Expressions
Alexander Savenko, 2016-04-04 00:51:29

How to correctly compose a regular expression for my example?

Hello!
I can't help but come up with a regular expression that will select only "{test2" joxi.ru/4AkOk43IMBBGaA with the condition that in the word "test2" the characters may not go sequentially like "{" and "test2" in the example

<w:t>{</w:t>
                </w:r>
                <w:r w:rsidR="007961C7">
                    <w:rPr>
                        <w:rFonts w:ascii="Times New Roman" w:eastAsia="Times New Roman" w:hAnsi="Times New Roman"
                                  w:cs="Times New Roman"/>
                        <w:color w:val="000000" w:themeColor="text1"/>
                        <w:sz w:val="24"/>
                        <w:szCs w:val="24"/>
                        <w:highlight w:val="yellow"/>
                        <w:lang w:eastAsia="ru-RU"/>
                    </w:rPr>
                    <w:t>test2</w:t>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Savenko, 2016-04-04
@savenko

Sergey,
thanks for the reply. I modified your request, since in the word "test2" the characters may not go sequentially ,
(\{).*(t).*(e).*(s).*(t).*(2)but I get such a plug joxi.ru/v29Jk6QSGkklXA
one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question