How can I do the following regex in ruby? -
How do I match regex to each of the following?
[Any number of character] in some text
need to drag
@ tableid = 'sometext'
I need to drag something Time ago
Mary and drugs
I need to draw "and", include spaces.
irb (main): 002: 0> "Abcdef" match in some text (/ \ [(* * *] \] / & Gt; "Abcdef" irb (main): 005: 0> "@ table_id = '2356' ''. Match (/ '(. *) '/) [1] = & gt; "2356" IRB (Main): 006: 0> "Mary and Drugs". Match (/ Mary (. *) Drugs /) [1] = & gt; "And"
Comments
Post a Comment