Re: scape . character



On 4/27/07, Jeff Pang <pangj@xxxxxxxxxxxxx> wrote:
> umm, why are you testing twice? Just capture the last digit (instead
> of the whole version number) in the first regex.
>
> next unless /\s+\d+\.\d+\.(\d+)\s+/;
> print "$1\n"
>

b/c he asked two questions,
1) how to capture version string;
2) how to capture last number from version string.

surely I know testing one time is enough.

Sorry, it just looked odd that you were making one capture and then
doing nothing with it but doing another capture.
.



Relevant Pages

  • Re: scape . character
    ... of the whole version number) in the first regex. ... how to capture last number from version string. ... Chinese Practical Mod_perl book online ...
    (perl.beginners)
  • Re: Regex Capture problem
    ... "learned" my regex using a freeware utility that had slightly different ... was trying to capture instead of. ... I have used Regex utilities before, so I understand the concepts of text ... Function RESub(str As String, SrchFor As String, ReplWith As String) As String ...
    (microsoft.public.excel.programming)
  • Re: SQL - Capture Specific Text and Copy to New Column/row
    ... The script is: ... Please advise of how I may capture only the date/time data. ... wildcard characters as characters in the string. ... by the Option Compare setting of the module. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Regular Expression Hangs
    ... You wouldn't need a regular expression to ... a single fixed string. ... Those patterns are defined by rules that are expressed in the ... will capture the following: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Herfried K. Wagner - HELP!
    ... Where did you find the command string ... Private Sub StartRecording() ... mciSimpleSendString("open new type waveaudio alias capture") ...
    (microsoft.public.dotnet.languages.vb)