I'm trying to write a regular expression for this.
I need 9, the number of digits which is in the bracket '6 / Helvetica-bold f' is provided, but '6 / helvetica f'
6 / Helvetica-Bold f 6 / Helvetica & lt; - Number of other text numbers - & gt; 261 632 meters (436243874) R1990 Online & lt; --- It does not match with 6 / Helvilleica-Bold F - any number of other text - & gt; 261 632m (436243874) 190 Endline and Lit; --- It would be a match
I found - "6 / Hellevica-bold [\ s \ S] + ((\ D \ d \ d \ d \ d \ d \ d \ D \ d)) "There was no good as it would be for both the cases shown above. Can someone run me in the mad?
6 \ s * / helvetica-bold f (? :(? 6 \ s * / Helvetica) [\ S \ S]) + \ ((\ d {9}) \)
should work. (re-edited to fit in the edited example)
Explanation:
6 \ s * / Helvetica- Bold F # Match 6 / Helvetica-Bold F (?: # As many times as possible, following (? 6 \s * / Helvetica) # (Unless it is possible to match 6 / halvetica) [\ S] # matches any character) + # at least one time (# matches a literal (\ d {9} match and captures 9 digits) \ # # A literal match Account is
Comments
Post a Comment