Home > Back-end >  To determine whether a string is included
To determine whether a string is included

Time:10-04

Enter a bar code scanning guns sTMH
System has set the start bar code original sStTMH
And
Termination of bar code sEnTMH
How do you determine the input bar code were sStTMH and sEnTMH contain?
(bar code prefix there may be letters, '-', barcode indefinite length)

CodePudding user response:

USES StrUtils;
SearchBuf function

Use its own search

CodePudding user response:

Judging sStTMH and sEnTMH contains sTMH
(pos (sTMH, sStTMH) & gt; 0) or (pos (sTMH sEnTMH) & gt; 0)

CodePudding user response:

Seems to be quite suitable for regular expression, although I haven't learned,

CodePudding user response:

(pos (sStTMH, sTMH) & gt; 0) and (pos (sEnTMH sTMH) & gt; 0)

CodePudding user response:

Determine the scope of the good, oneself look for regular, saving method can also be upstairs curve, need your debugging,
  • Related